Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AuthorizationExecuteWithPrivileges error -60008 (probably SOLVED)



A person who seems to want anonymity wrote off-list:
I have gotten this error when the TMPDIR environment variable is not
pointing to a valid location.
This is interesting. My application, when it gets error -60008, is run from a postflight script by Apple's Installer.app. The TMPDIR it inherits is of a name that refers to my installation package. The directory is present during installation. After the error, I looked and that directory is gone.

I altered the postflight script to create a directory and set TMPDIR to it. The error does not recur. So my problem is solved (unless my tests have been on the lucky end of the intermittency).

This is bizarre behavior, though. Was there documentation for this quirk? How did my off-list correspondent find out about it?

And boy, is Thunderbird a crappy mailer. I discover that it stripped all the leading tabs from the code I posted. My apologies for the illegible code.

— F
From: Fritz Anderson <email@hidden>
Date: Mon, 03 Mar 2008 15:08:15 -0600
To: <email@hidden>
Subject: AuthorizationExecuteWithPrivileges error -60008

Searching for "-60008" at apple.com leads me to this list; if there's a
better forum, please let me know what it is.

I have a Carbon application that executes about half a dozen tools with
elevated privileges, using AuthorizationExecuteWithPrivileges.

One of those calls, intermittently, and only on Leopard, fails to run
the tool, instead returning -60008, "An unrecognized internal error
occurred." No console message appears.

The call consistently worked on Tiger (or at least I had no complaints),
and comparing it to known-good calls and setups shows no obvious
differences.

My reports say that the call does work when my application is
re-launched and the AuthorizationExecuteWithPrivileges is attempted again.

I am out of ideas, and of course the "internal error" dampens my hopes
that there is something I can do. I'd appreciate any advice on how to
cure or debug this problem.
...
Thanks for your attention,

‹ F

_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.