From: Simon Wilkinson Date: Tue, 6 Sep 2011 13:14:56 +0000 (+0100) Subject: pam: Fix test_pam on Darwin X-Git-Tag: upstream/1.8.0_pre1^2~3302 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=85d54a064b62756c0a59be030d0eb1fbc293d168;p=packages%2Fo%2Fopenafs.git pam: Fix test_pam on Darwin Darwin doesn't have a getpassphrase function. Fix the PAM test to use getpass, in the same way as we do for lots of other platforms. Change-Id: Ib252174ac1356a8975a9187b252d4fe0246d5d39 Reviewed-on: http://gerrit.openafs.org/5372 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/pam/test_pam.c b/src/pam/test_pam.c index 0665a3c58..e3004a52e 100644 --- a/src/pam/test_pam.c +++ b/src/pam/test_pam.c @@ -28,7 +28,7 @@ static const char *service = "afstest"; static const char *new_envstring = "GOTHEREVIATESTPAM=1"; static const char *new_homestring = "HOME=/tmp"; -#if defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_NBSD_ENV) +#if defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DFBSD_ENV) || defined(AFS_NBSD_ENV) || defined(AFS_DARWIN_ENV) #define getpassphrase getpass #endif