Re: Delete myDriver.kext files from normal user.
Re: Delete myDriver.kext files from normal user.
- Subject: Re: Delete myDriver.kext files from normal user.
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 17 Oct 2008 17:29:12 -0400
On Fri, Oct 17, 2008 at 5:17 PM, Jonathon Kuo
<email@hidden> wrote:
> Just curious why the recommendation against system()?
1) There's no need for it here. Why launch /bin/sh just to launch
/bin/rm, when you can call unlink(2) yourself?
2) In this case, system(3) will launch a shell *as root*. It's almost
always preferable to avoid this.
3) Doing anything involving arguments is always a tricky subject,
because of Unicode.
4) Invoking shells (through use of system(3) in particular) is
typically a red flag. It's usually indicative of a lack of knowledge
of the environment.
--Kyle Sluder
_______________________________________________
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