From 85d54a064b62756c0a59be030d0eb1fbc293d168 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 6 Sep 2011 14:14:56 +0100 Subject: [PATCH] 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 --- src/pam/test_pam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pam/test_pam.c b/src/pam/test_pam.c index 0665a3c585..e3004a52e4 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