mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Eliminate a setreuid() call that doesn't make sense for FreeBSD.
We don't use this module, but still I don't want to leave this call in the code.
This commit is contained in:
parent
06b963fe1a
commit
41058e060e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41226
@ -171,6 +171,7 @@ static int _pam_auth_unix( pam_handle_t *pamh,
|
||||
|
||||
pw = getpwnam ( name );
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
/* For NIS+, root cannot get password for lesser user */
|
||||
if (pw) {
|
||||
uid_t save_euid, save_uid;
|
||||
@ -182,6 +183,7 @@ static int _pam_auth_unix( pam_handle_t *pamh,
|
||||
setreuid (save_uid,save_euid);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( pw && (!pw->pw_passwd || pw->pw_passwd[0] == '\0') &&
|
||||
!(flags & PAM_DISALLOW_NULL_AUTHTOK)) {
|
||||
|
Loading…
Reference in New Issue
Block a user