Don't forget to reset _pw_stepping_yp to 0 before returning. Fixes a bug

where getpwent() would ignore wildcard entries that followed a netgroup
entry.

PR:		misc/12999
Submitted by:	David Hedley <david@inty.net>
This commit is contained in:
Dag-Erling Smørgrav 1999-09-06 08:04:43 +00:00
parent 145eecf845
commit ecab1f6824

View File

@ -427,6 +427,7 @@ unwind(grp)
} else {
endgrent();
latch = 0;
_pw_stepping_yp = 0;
gr = NULL;
return(0);
}