From owner-freebsd-bugs Wed Feb 11 20:51:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA00762 for freebsd-bugs-outgoing; Wed, 11 Feb 1998 20:51:12 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from labrador.cslab.vt.edu (labrador.cslab.vt.edu [198.82.184.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA00757 for ; Wed, 11 Feb 1998 20:51:06 -0800 (PST) (envelope-from kmitch@labrador.cslab.vt.edu) Received: (from kmitch@localhost) by labrador.cslab.vt.edu (8.8.8/8.8.7) id XAA21342; Wed, 11 Feb 1998 23:50:11 -0500 (EST) (envelope-from kmitch) From: Keith Mitchell Message-Id: <199802120450.XAA21342@labrador.cslab.vt.edu> Subject: Re: bin/5610: getpwnam and getpwuid do not use the +@netgroup convention in /etc/passwd. In-Reply-To: <19980211203542.52477@physik.TU-Berlin.DE> from Dirk Froemberg at "Feb 11, 98 08:35:42 pm" To: ibex@physik.TU-Berlin.DE (Dirk Froemberg) Date: Wed, 11 Feb 1998 23:50:11 -0500 (EST) Cc: freebsd-bugs@FreeBSD.ORG Reply-To: kmitch@cslab.vt.edu X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > The getpwnam and getpwuid system calls do not correctly lookup netgroups > > int the passwd file via a +@netgroup entry. They do, however work with > > a +user entry. The getpwent system call does parse the netgroup > > imports. > > The attached patch to getnetgrent.c solved the problem for me. Please have > a look at it and feel free to use it. Yes, this patch appears to fix the problem. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message