]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
pam: Fix test_pam on Darwin
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 6 Sep 2011 13:14:56 +0000 (14:14 +0100)
committerDerrick Brashear <shadow@dementix.org>
Thu, 8 Sep 2011 15:28:05 +0000 (08:28 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/pam/test_pam.c

index 0665a3c585d7e4b812bd22981ea1a4f900e210c7..e3004a52e4e1922383e3835f89fbab88f315f37d 100644 (file)
@@ -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