summaryrefslogtreecommitdiffstats
path: root/contrib/libpam
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-11-18 01:24:34 +0000
committerjdp <jdp@FreeBSD.org>1998-11-18 01:24:34 +0000
commit454b4e0cc2d0fe77ab1828676cd908e770e215af (patch)
tree8d7db426ab4c529750c8a60bdcdd36739f29a85c /contrib/libpam
parent893eba16b89aae0c76fc8617e155726d165e402d (diff)
downloadFreeBSD-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.
Diffstat (limited to 'contrib/libpam')
-rw-r--r--contrib/libpam/modules/pam_unix/pam_unix_auth.c2
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)) {
OpenPOWER on IntegriCloud