Latest world NIS woes
Jacques A. Vidrine
nectar at FreeBSD.org
Fri Apr 18 10:02:41 PDT 2003
On Fri, Apr 18, 2003 at 11:51:24AM -0500, Jacques A. Vidrine wrote:
> Huh, probably one of the struct passwd fields is returned set to NULL,
> most likely pw_class (which shouldn't be filled-in if you are not
> root).
Oh, yeah, we had this same problem when I first brought in nsswitch
from NetBSD over 2 years ago.
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/gen/getpwent.c
Revision 1.56 / (download) - annotate - [select for diffs], Fri Oct 27 18:27:07 2000 UTC (2 years, 5 months ago) by nectar
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)
Explicitly initialize _pw_passwd.
If I recall correctly, someone noticed this due to OpenSSH then, also.
:-)
I'll commit a fix shortly. I first have to decide where to do the
initialization.
Cheers,
--
Jacques A. Vidrine <nectar at celabo.org> http://www.celabo.org/
NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos
jvidrine at verio.net . nectar at FreeBSD.org . nectar at kth.se
More information about the freebsd-current
mailing list