From 82b24c814da1506a866046b6b56fc67552a6b570 Mon Sep 17 00:00:00 2001 From: Michael Allman Date: Fri, 20 Jul 2001 21:41:13 +0000 Subject: [PATCH] pam-make-module-useful-for-freebsd-20010720 make module actually work for freebsd --- src/pam/afs_auth.c | 2 +- src/pam/afs_password.c | 2 +- src/pam/afs_setcred.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pam/afs_auth.c b/src/pam/afs_auth.c index 90772fbf3..b76022bd7 100644 --- a/src/pam/afs_auth.c +++ b/src/pam/afs_auth.c @@ -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)); diff --git a/src/pam/afs_password.c b/src/pam/afs_password.c index 3de2c54fa..c78b79494 100644 --- a/src/pam/afs_password.c +++ b/src/pam/afs_password.c @@ -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)); diff --git a/src/pam/afs_setcred.c b/src/pam/afs_setcred.c index 75a0235d3..f3b46a0a6 100644 --- a/src/pam/afs_setcred.c +++ b/src/pam/afs_setcred.c @@ -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)); -- 2.39.5