1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

Missed a spot in previous commit.

Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Dag-Erling Smørgrav 2002-04-15 00:21:25 +00:00
parent 5476d2e5aa
commit 00d9b6b8d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94700

View File

@ -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;
}