From ecab1f682479e3dcbfae05aedf29a9adac47afad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 6 Sep 1999 08:04:43 +0000 Subject: [PATCH] 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 --- lib/libc/gen/getpwent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 926300264bd5..c2833dec1c6e 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -427,6 +427,7 @@ unwind(grp) } else { endgrent(); latch = 0; + _pw_stepping_yp = 0; gr = NULL; return(0); }