The following reply was made to PR suexec/1543; it has been noted by GNATS.

From: "M. D. Parker" <[EMAIL PROTECTED]>
To: Marc Slemko <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: suexec/1543: suexec.c -- Does not report exec failure reasons
Date: Fri, 12 Dec 97 11:41:44 PST

 Problem with the patch seems to be in the evaluation of the parameters
 pushed onto the stack before the call.  It seems that at least in my gcc
 implementation, the value of errno gets changed before being printed out,
 but the strerror() call reports the right textual error.
 
 Suggest that you change the patch as follows:
 
 .
 .
 .
 int errx;      /* error numb holder */
 .
 .
 .
         errx=errno;
     log_err("(%d)%s: exec failed (%s)\n", errx, strerror(errx), cmd);
 
 Mike

Reply via email to