Subject: Re: strange nis behaviour
To: Luke Mewburn <lukem@NetBSD.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: current-users
Date: 02/19/2005 14:24:49
On Mon, Feb 07, 2005 at 11:33:14AM +1100, Luke Mewburn wrote:
> You can't, and it's not relevant because the libc passwd parsing
> routines don't use ypcat(1) -- they use the yp_first(3)/yp_next(3)
> functions.
> 
> 
> I've examined the getpwent.c (and getgrent.c) code, and the behaviour
> in 2.0 was to skip "dodgy" (un-parseable) entries in getpwent() and
> getgrent().
> When I overhauled this code recently in -current, I changed the
> behaviour to fail the getXXent() lookup when an entry couldn't be
> parsed.  This change is causing your problem.
> 
> I will look at the getpwent.c (and getgrent.c) code and make it more
> robust in the event of "corrupt" entries.
> 
> Could you please submit a PR about this problem?

Oh, i forgot to note i sent the pr a while ago
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=29272
however, it is probably not really acurate

regards,
antoine