Bug 12997

Summary: bug in getpwent when using NIS
Product: Base System Reporter: david <david>
Component: miscAssignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description david 1999-08-06 13:10:01 UTC
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.

Fix: The following patch fixes the problem:
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 1999-08-11 09:22:46 UTC
Responsible Changed
From-To: freebsd-bugs->des

I'll handle it. 
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 1999-09-06 09:10:05 UTC
State Changed
From-To: open->closed

Patch applied to -CURRENT and -STABLE, thanks!