AuthorizationCreate return code -67049
AuthorizationCreate return code -67049
- Subject: AuthorizationCreate return code -67049
- From: Vera Tkachenko <email@hidden>
- Date: Wed, 23 Dec 2009 14:06:43 +0200
Hello everyone!
In my application I need to execute command with privileges using AuthorizationExecuteWithPrivileges.
To obtain authorization reference from system I use the following code
const AuthorizationRights* kNoRightsSpecified = NULL;
OSStatus err = AuthorizationCreate(kNoRightsSpecified, AuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &authorizationRef);
if (err == errAuthorizationSuccess) {
NSLog(@"Authorization created. Will try to copy rights");
<copy rights>
}
else {
NSLog(@"Authorized Failed: error %i ", err);
}
And sometimes get the following error from users:
"Authorized Failed: error -67049"
So, AuthorizationCreate returns -67049 and I can't find this error code in documentation/headers.
Does anyone know where to find explanation for this error code?
Thanks,
Vera Tkachenko_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden