From: Derrick Brashear Date: Tue, 13 Sep 2011 20:17:18 +0000 (-0400) Subject: darwin: minimal afsbackgrounder ticket fix X-Git-Tag: upstream/1.8.0_pre1^2~3286 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=11b6f9f0034a3934ffcf1dea8b1bfd915e7522ed;p=packages%2Fo%2Fopenafs.git darwin: minimal afsbackgrounder ticket fix avoid the "default" API since it's broken. this will at least prompt for tickets. Change-Id: Iee566d5f5502b7dce900d833f5711038c984cf37 Reviewed-on: http://gerrit.openafs.org/5408 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/platform/DARWIN/AFSPreference/Krb5Util.m b/src/platform/DARWIN/AFSPreference/Krb5Util.m index 2b892e17b..6a54f2a5b 100644 --- a/src/platform/DARWIN/AFSPreference/Krb5Util.m +++ b/src/platform/DARWIN/AFSPreference/Krb5Util.m @@ -24,6 +24,7 @@ @throw [NSException exceptionWithName:@"Krb5Util" reason:@"getNewTicketIfNotPresent" userInfo:nil]; +#if !(defined(MAC_OS_X_VERSION_10_7) && (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_6)) else { KLLifetime valuel; KLSize sizel = sizeof (valuel); @@ -72,7 +73,7 @@ kstatus = KLLoginOptionsSetAddressless (inLoginOptions, value); } - +#endif if (kstatus == noErr) kstatus = KLAcquireNewInitialTickets(nil, inLoginOptions,