Re: how to delete the current user's directory?
Re: how to delete the current user's directory?
- Subject: Re: how to delete the current user's directory?
- From: Chris Hanson <email@hidden>
- Date: Mon, 01 Sep 2008 18:00:24 -0700
On Sep 1, 2008, at 3:46 AM, XiaoGang Li wrote:
hi, list, I have an uninstaller application , which is used to
delete
the files installed; and also i have a file which located in the
current
user's directory, like the ~/Library/LaunchAgents/com.****.plist.
and how
can i delete this kind of file, i have tried the
AuthorizationExecuteWithPrivileges
API, it seems not workable, do i give a wrong flag value or
something else?
NEVER use AuthorizationExecuteWithPrivileges like that.
That is not what AuthorizationExecuteWithPrivileges is for.
There is a large amount of documentation on the Apple Developer
Connection web site describing how to perform privileged operations
correctly and securely. AuthorizationExecuteWithPrivileges is not how
to do so.
-- Chris
_______________________________________________
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