• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delete myDriver.kext files from normal user.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Delete myDriver.kext files from normal user.
      • From: "Michael Ash" <email@hidden>
References: 
 >Delete myDriver.kext files from normal user. (From: Sachin Kumar <email@hidden>)
 >Re: Delete myDriver.kext files from normal user. (From: "Kyle Sluder" <email@hidden>)
 >Re: Delete myDriver.kext files from normal user. (From: Jonathon Kuo <email@hidden>)

  • Prev by Date: Re: Delete myDriver.kext files from normal user.
  • Next by Date: Screen not redrawing
  • Previous by thread: Re: Delete myDriver.kext files from normal user.
  • Next by thread: Re: Delete myDriver.kext files from normal user.
  • Index(es):
    • Date
    • Thread