From 6428136e184157dfb786320cedccbdf95a47a86f Mon Sep 17 00:00:00 2001 From: Daria Phoebe Brashear Date: Tue, 24 Oct 2017 13:04:12 -0400 Subject: [PATCH] kinit: use result of security framework test to enable its use we already test for the security framework. use the result of it to decide if we want to enable its use --- kuser/kinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kuser/kinit.c b/kuser/kinit.c index dcb86bcf1..e0229dde7 100644 --- a/kuser/kinit.c +++ b/kuser/kinit.c @@ -35,7 +35,7 @@ #include "kuser_locl.h" -#ifdef __APPLE__ +#ifdef HAVE_FRAMEWORK_SECURITY #include #endif @@ -477,7 +477,7 @@ get_new_tickets(krb5_context context, passwd[strcspn(passwd, "\n")] = '\0'; } -#ifdef __APPLE__ +#ifdef HAVE_FRAMEWORK_SECURITY if (passwd[0] == '\0') { const char *realm; OSStatus osret;