| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I would suggest switching to postfix. qmail is unmaintained, and whileThis was not to be a debate on what is the best MTA. I respectfully disagree on all counts. Postfix will not do half of the things we use qmail for. But no matter, not the point. I've used and managed both. The question is about execv.
no one would accuse djb's code of being a forest of security holes, it's not
exactly written with an aggressive eye to language standards or portability.
It says the correct directory. Which is to be expected.The execv (added more code) returns an error 2, or, file not found on Leopard.
That's odd. I'd probably replace it with "/bin/pwd" and see what it says. :)
Could it be a bug in execv on Leoprd when when not using a absolute filename?
No, because as a simple test program shows, that works:
static char *ev[] = { 0, 0 };
int main(void) { ev[0] = "bin/ls"; chdir("/"); execv(*ev, ev); return 23; }
This will run ls and return 0, suggesting that execv can handle non-absolute path names.
Conclusion: Something else has gone wrong.
I disagree, your test is not the same.
Steve _______________________________________________ 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
| References: | |
| >Re: execv bug??? (From: email@hidden (Peter Seebach)) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.