summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-05-07 23:26:00 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-05-07 23:26:00 +0000
commit719137a64d270944b396470efdfc5184581542f4 (patch)
tree67033b31847720b450cab0e6d3ef6dc8cda299e2 /lib/libc
parentd88e9d841a44f02830ee94ef2c63a9c924bad6ca (diff)
Notes
Diffstat (limited to 'lib/libc')
-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 1d10a0b2aff2..a3bfed869d7a 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)