From owner-freebsd-bugs Fri Aug 6 5:10:27 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 21CFF14CD5 for ; Fri, 6 Aug 1999 05:10:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA92267; Fri, 6 Aug 1999 05:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 16B1B14D24; Fri, 6 Aug 1999 05:03:11 -0700 (PDT) Message-Id: <19990806120311.16B1B14D24@hub.freebsd.org> Date: Fri, 6 Aug 1999 05:03:11 -0700 (PDT) From: david@inty.net To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: misc/12997: bug in getpwent when using NIS Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12997 >Category: misc >Synopsis: bug in getpwent when using NIS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 6 05:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: David Hedley >Release: 3.2-RELEASE >Organization: INTY >Environment: FreeBSD server.inty.net 3.2-RELEASE FreeBSD 3.2-RELEASE #1: Thu Jul 22 15:18:40 BST 1999 david@server.inty.net:/usr/src/sys/compile/GENERIC+MODS i386 >Description: If you have a line of the form '+@netgroup:::::::::' in master.passwd before a wildcard '+:::::::::' entry, the wildcard entry is not processed by 'getpwent' when sequentially scanning the password entries. The problem appears to be that _pw_stepping_yp is not reset to 0 after scanning through a netgroup (see gen/getpwent.c:unwind) and before scanning through the '+' wildcard entry. >How-To-Repeat: >Fix: The following patch fixes the problem: *** getpwent.c.orig Fri Aug 6 12:37:41 1999 --- getpwent.c Fri Aug 6 12:45:43 1999 *************** *** 425,430 **** --- 425,431 ---- } else { endgrent(); latch = 0; + _pw_stepping_yp = 0; gr = NULL; return(0); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message