Correctly set _PWF_FILES in pw_fields when appropriate.
(_PWF_NIS and _PWF_HESIOD were already being set.) Reported by: Shizuka Kudo <shizukakudo_99@yahoo.com> Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
97f9172896
commit
71cc8f0764
@ -623,8 +623,12 @@ files_passwd(void *retval, void *mdata, va_list ap)
|
||||
(void)st->db->close(st->db);
|
||||
st->db = NULL;
|
||||
}
|
||||
if (rv == NS_SUCCESS && retval != NULL)
|
||||
*(struct passwd **)retval = pwd;
|
||||
if (rv == NS_SUCCESS) {
|
||||
pwd->pw_fields &= ~_PWF_SOURCE;
|
||||
pwd->pw_fields |= _PWF_FILES;
|
||||
if (retval != NULL)
|
||||
*(struct passwd **)retval = pwd;
|
||||
}
|
||||
return (rv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user