Date: Fri, 18 Apr 2003 12:02:39 -0500 From: "Jacques A. Vidrine" <nectar@FreeBSD.org> To: current@freebsd.org Subject: Re: Latest world NIS woes Message-ID: <20030418170239.GF45899@madman.celabo.org> In-Reply-To: <20030418165124.GE45899@madman.celabo.org> References: <EE3D3FBAFFCAED448C21C398FDAD91AC0107F7@EBE1.gc.nat> <20030418162813.GA714@juno.home.paeps.cx> <20030418165124.GE45899@madman.celabo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@celabo.org> http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030418170239.GF45899>