diff options
author | des <des@FreeBSD.org> | 1999-09-06 08:04:43 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1999-09-06 08:04:43 +0000 |
commit | 389c23d61791710d0d3af997c3eebb6d16582308 (patch) | |
tree | d62715645ebfe8cc3a114ebbd0b643526fde9b22 /lib/libc | |
parent | 500e1007e7bfbe9bcf710885be920da728603af3 (diff) | |
download | FreeBSD-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/libc')
-rw-r--r-- | lib/libc/gen/getpwent.c | 1 |
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); } |