diff options
author | jdp <jdp@FreeBSD.org> | 1998-11-18 01:24:34 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-11-18 01:24:34 +0000 |
commit | 454b4e0cc2d0fe77ab1828676cd908e770e215af (patch) | |
tree | 8d7db426ab4c529750c8a60bdcdd36739f29a85c | |
parent | 893eba16b89aae0c76fc8617e155726d165e402d (diff) | |
download | FreeBSD-src-454b4e0cc2d0fe77ab1828676cd908e770e215af.zip FreeBSD-src-454b4e0cc2d0fe77ab1828676cd908e770e215af.tar.gz |
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.
-rw-r--r-- | contrib/libpam/modules/pam_unix/pam_unix_auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libpam/modules/pam_unix/pam_unix_auth.c b/contrib/libpam/modules/pam_unix/pam_unix_auth.c index 95f13d0..65c2229 100644 --- a/contrib/libpam/modules/pam_unix/pam_unix_auth.c +++ b/contrib/libpam/modules/pam_unix/pam_unix_auth.c @@ -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)) { |