OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Todd C. Miller (millertcvs.openbsd.org)
Date: Sat Jan 03 2004 - 12:30:39 CST


CVSROOT: /cvs
Module name: src
Changes by: millertcvs.openbsd.org 2004/01/03 11:30:39

Modified files:
        usr.sbin/user : user.c

Log message:
Replace bogus use of fgetln() (which doesn't NUL-terminate strings)
with fgets() (which does). Using fgetln() doesn't make a huge amount
of sense since passwd entries are required to be short and mustn't contain
NULs. This also fixes a bus error on sparc64 (caused by passing a pointer
to an int when a pointer to size_t was expected) found by pvalchev.
Tested and OK pvalchev