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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to