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: How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges?



You don't. As has been told to you several times now, attempting to
run a shell script as root from within your program is a bad idea, and
is not the right way to go about this. This was bad enough when you
wanted to pass hard-coded paths, but becomes even more the case when
we see that you are intending to pass shell wildcards. I cannot stress
this enough: read the documentation that has been given to you by
previous posters.

The most important point is that your helper tool should be as small
and single-purposed as possible. The shell does *not* meet this
criteria.

On 8/27/07, judiexu <email@hidden> wrote:
> for example, "rm test*.txt"
>
> Thanks!

-- 
Clark S. Cox III
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >How to pass parameter including match symbol like "*" to command executed by AuthorizationExecuteWithPrivileges? (From: judiexu <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.