• 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: execv bug???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: execv bug???


  • Subject: Re: execv bug???
  • From: Steve <email@hidden>
  • Date: Sun, 27 Jan 2008 02:41:21 -0600

Peter Seebach wrote:
I would suggest switching to postfix. qmail is unmaintained, and while
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.
This 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.
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. :)
It says the correct directory. Which is to be expected.
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.

Recall, qmail is the second most deployed MTA ,and, the code works on all platforms, including Tiger as is. The code appears correct. The extra code shows it to be in the right directory, as it does when rec-compiled on our Tiger servers. So, my conclusion is different. Anyone else? Can we stick to the topic?

Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: execv bug???
      • From: email@hidden (Peter Seebach)
References: 
 >Re: execv bug??? (From: email@hidden (Peter Seebach))

  • Prev by Date: Re: execv bug???
  • Next by Date: Re: execv bug???
  • Previous by thread: Re: execv bug???
  • Next by thread: Re: execv bug???
  • Index(es):
    • Date
    • Thread