[Pythonmac-SIG] Re: "Bus error" when using Authorization
Bob Ippolito
bob at redivi.com
Sun Aug 8 22:12:11 CEST 2004
On Aug 8, 2004, at 3:48 PM, Vincent Bernat wrote:
> Hello !
>
> I am trying to use the Authorization class with python to check that
> the user owns some rights. Here is a snippet of code :
>
>>>> from Authorization import *
>>>> auth = Authorization()
>>>> auth.copyRights(rights=(("org.crans.wifi.daemons.restart", None,
> 0),), flags=(kAuthorizationFlagDefaults,
> kAuthorisationFlagExtendRights, kAuthorizationFlagInteractionAllowed,
> kAuthorizationFlagPreAuthorize))
>
> And I get "bus error".
My guess is that it's a retain/release bug somewhere. It actually
works for me if not done at the interactive prompt. I don't have time
right now to track it down any further than that.
-bob
More information about the Pythonmac-SIG
mailing list