X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/6bb659645459a5a8b169b9554c8dfc459f435bc2..af243a0d9bf37c3818926f82705eec9b22b50a4d:/SystemConfiguration.fproj/helper/SCHelper_server.c diff --git a/SystemConfiguration.fproj/helper/SCHelper_server.c b/SystemConfiguration.fproj/helper/SCHelper_server.c index c7efc4c..62957bd 100644 --- a/SystemConfiguration.fproj/helper/SCHelper_server.c +++ b/SystemConfiguration.fproj/helper/SCHelper_server.c @@ -1251,7 +1251,8 @@ copyEntitlement(SCHelperSessionRef session, CFStringRef entitlement) CFIndex code = CFErrorGetCode(error); CFStringRef domain = CFErrorGetDomain(error); - if (!CFEqual(domain, kCFErrorDomainMach) || (code != kIOReturnNotFound)) { + if (!CFEqual(domain, kCFErrorDomainMach) || + ((code != kIOReturnInvalid) && (code != kIOReturnNotFound))) { // if unexpected error SCLog(TRUE, LOG_ERR, CFSTR("SecTaskCopyValueForEntitlement(,\"%@\",) failed, error = %@ : %@"),