Subject: Re: fixing `Invalid UID's default to 0' problem...
To: None <lukem@connect.com.au>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-security
Date: 05/15/1997 10:20:32
On Thu, 15 May 1997 16:48:03 +1000 
 Luke Mewburn <lukem@connect.com.au> wrote:

 > There's a two part solution to this:
 > * modify pw_scan() to use strtol() instead of atoi(), and to set
 >   the return value of flags to include _PASSWORD_NOUID (or NOGID)
 >   if there was an invalid number.

...ok, sounds fine ... 

 > * pwd_mkdb: in case of _PASSWORD_NOUID being returned for a non-YP
 >   line, to either:
 > 	* ignore the line (maybe flagging a warning), or
 > 	* to treat the uid/gid as -1 (not a standard?)

...I'd prefer "ignore the line and issue a warning".

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939