Re: Latest world NIS woes

From: Jacques A. Vidrine <nectar_at_FreeBSD.org>
Date: Fri, 18 Apr 2003 12:02:39 -0500
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
Received on Fri Apr 18 2003 - 08:02:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC