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: execv bug???



In message <email@hidden>, Tommy Nordgren wri
tes:
>If you want a call that uses the PATH environment variable you should  
>use execvp instead of execv

He's not trying to use PATH -- he's trying to use a non-absolute path.

>Actually, I'ts preferable to use a call that Don't use the PATH  
>environment variable, and specify the absolute path
>of the executable instead.

Agreed, especially because execvp doesn't search for binaries if the
path argument contains even one slash, even if it's not at the front
of the path.

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

This email sent to email@hidden

References: 
 >Re: execv bug??? (From: Tommy Nordgren <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.