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

execv bug???


  • Subject: execv bug???
  • From: Steve <email@hidden>
  • Date: Sun, 27 Jan 2008 00:12:31 -0600

Have a well known program, qmail, compiled on Leopard. We've used it for 3 years or so on Mac Tiger et al.

qmail runs on most any platform out there. In the code, are the following lines:

     if (chdir(auto_qmail) == -1) _exit(61);
     execv(*binqqargs,binqqargs);
     _exit(120);


binqqargs is defined as:

static char *binqqargs[2] = { 0, 0 } ;

Later it is set as:

   binqqargs[0] = "bin/qmail-queue";


auto_qmail contains the path /var/qmail

So, the chdir on all other platforms goes to /var/qmail, and, the execv executes from there bin/qmail-queue.

The execv (added more code) returns an error 2, or, file not found on Leopard.

It works perfectly on Tiger, freeBSD, you name it.

If I change binqqargs to /var/qmail/bin/qmail-queue, all works fine.

Could it be a bug in execv on Leoprd when when not using a absolute filename? If so, what is the mechanism to report and hopefully some day get it fixed?

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: Tommy Nordgren <email@hidden>
    • Re: execv bug???
      • From: email@hidden (Peter Seebach)
  • Prev by Date: Re: Darwin 8.11 and 9.1 Source
  • Next by Date: Re: execv bug???
  • Previous by thread: Re: Darwin 8.11 and 9.1 Source
  • Next by thread: Re: execv bug???
  • Index(es):
    • Date
    • Thread