summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getpwent.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-05-07 23:26:00 +0000
committerdes <des@FreeBSD.org>2002-05-07 23:26:00 +0000
commit86f528a4ae3d73b85653e62e055ad54639c702f0 (patch)
tree67033b31847720b450cab0e6d3ef6dc8cda299e2 /lib/libc/gen/getpwent.c
parent8c85827b130d428543fc639b8117498d9e620e80 (diff)
downloadFreeBSD-src-86f528a4ae3d73b85653e62e055ad54639c702f0.zip
FreeBSD-src-86f528a4ae3d73b85653e62e055ad54639c702f0.tar.gz
Fix bug that causes passwd and friends to fail when the user has a '+' in
their passwd file for NIS because _PWF_SOURCE is not set. Submitted by: amigus (perforce change 10969)
Diffstat (limited to 'lib/libc/gen/getpwent.c')
-rw-r--r--lib/libc/gen/getpwent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index 1d10a0b..a3bfed8 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -966,6 +966,9 @@ pwnam_netgrp:
break;
}
break;
+ default:
+ _pw_passwd.pw_fields &= ~_PWF_SOURCE;
+ _pw_passwd.pw_fields |= _PWF_FILES;
}
if ((search == _PW_KEYBYNAME &&
strcmp(_pw_passwd.pw_name, name) == 0)
OpenPOWER on IntegriCloud