diff options
author | des <des@FreeBSD.org> | 2002-04-15 00:21:25 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-15 00:21:25 +0000 |
commit | e4c18be72a64b1f2c1ae1689ccf9ff2edbba4588 (patch) | |
tree | f22f8d8f055d3156800ef6a0b9fa4fda18702a46 /lib/libc | |
parent | 99e79d7fa0bf74e995f0f4db81d90c3795f6b259 (diff) | |
download | FreeBSD-src-e4c18be72a64b1f2c1ae1689ccf9ff2edbba4588.zip FreeBSD-src-e4c18be72a64b1f2c1ae1689ccf9ff2edbba4588.tar.gz |
Missed a spot in previous commit.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getpwent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 235aa2b..1d10a0b 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -408,7 +408,7 @@ _local_getpw(rv, cb_data, ap) (void)(_pw_db->close)(_pw_db); _pw_db = (DB *)NULL; } - if (rval == 0) { + if (rval == NS_SUCCESS) { _pw_passwd.pw_fields &= ~_PWF_SOURCE; _pw_passwd.pw_fields |= _PWF_FILES; } @@ -558,6 +558,8 @@ _nis_getpw(rv, cb_data, ap) free(data); if (__pwparse(&_pw_passwd, line)) return NS_UNAVAIL; + _pw_passwd.pw_fields &= ~_PWF_SOURCE; + _pw_passwd.pw_fields |= _PWF_NIS; return NS_SUCCESS; } |