summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1999-09-06 08:04:43 +0000
committerdes <des@FreeBSD.org>1999-09-06 08:04:43 +0000
commit389c23d61791710d0d3af997c3eebb6d16582308 (patch)
treed62715645ebfe8cc3a114ebbd0b643526fde9b22 /lib
parent500e1007e7bfbe9bcf710885be920da728603af3 (diff)
downloadFreeBSD-src-389c23d61791710d0d3af997c3eebb6d16582308.zip
FreeBSD-src-389c23d61791710d0d3af997c3eebb6d16582308.tar.gz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getpwent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index 9263002..c2833de 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -427,6 +427,7 @@ grpagain:
} else {
endgrent();
latch = 0;
+ _pw_stepping_yp = 0;
gr = NULL;
return(0);
}
OpenPOWER on IntegriCloud