From owner-freebsd-current@FreeBSD.ORG Fri Apr 18 10:02:41 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0713337B401 for ; Fri, 18 Apr 2003 10:02:41 -0700 (PDT) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 618C743FDF for ; Fri, 18 Apr 2003 10:02:40 -0700 (PDT) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.nectar.cc (Postfix) with ESMTP id 0084BAB for ; Fri, 18 Apr 2003 12:02:40 -0500 (CDT) Received: by madman.celabo.org (Postfix, from userid 1001) id 4695378C66; Fri, 18 Apr 2003 12:02:39 -0500 (CDT) Date: Fri, 18 Apr 2003 12:02:39 -0500 From: "Jacques A. Vidrine" To: current@freebsd.org Message-ID: <20030418170239.GF45899@madman.celabo.org> References: <20030418162813.GA714@juno.home.paeps.cx> <20030418165124.GE45899@madman.celabo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030418165124.GE45899@madman.celabo.org> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.3i-ja.1 Subject: Re: Latest world NIS woes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 17:02:41 -0000 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 http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se