pam-make-module-useful-for-freebsd-20010720
authorMichael Allman <msa@dinosauricon.com>
Fri, 20 Jul 2001 21:41:13 +0000 (21:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 20 Jul 2001 21:41:13 +0000 (21:41 +0000)
make module actually work for freebsd

src/pam/afs_auth.c
src/pam/afs_password.c
src/pam/afs_setcred.c

index 90772fb..b76022b 100644 (file)
@@ -142,7 +142,7 @@ pam_sm_authenticate(
        RET(PAM_AUTH_ERR);
     }
 #else
-#ifdef AFS_LINUX20_ENV
+#if     defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV)
     upwd = getpwnam(user);
 #else
     upwd = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));
index 3de2c54..c78b794 100644 (file)
@@ -129,7 +129,7 @@ pam_sm_chauthtok(
        RET(PAM_AUTH_ERR);
     }
 #else
-#ifdef AFS_LINUX20_ENV
+#if     defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV)
     upwd = getpwnam(user);
 #else
     upwd = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));
index 75a0235..f3b46a0 100644 (file)
@@ -128,7 +128,7 @@ pam_sm_setcred(
         RET(PAM_AUTH_ERR);
     }
 #else
-#ifdef AFS_LINUX20_ENV
+#if     defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV)
     upwd = getpwnam(user);
 #else
     upwd = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));