Date: Fri, 6 Aug 1999 05:03:11 -0700 (PDT) From: david@inty.net To: freebsd-gnats-submit@freebsd.org Subject: misc/12997: bug in getpwent when using NIS Message-ID: <19990806120311.16B1B14D24@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990806120311.16B1B14D24>