xfs
[Top] [All Lists]

Re: stress test failures

To: linux-xfs@xxxxxxxxxxx
Subject: Re: stress test failures
From: "Marcelo E. Magallon" <marcelo.magallon@xxxxxxxxxxx>
Date: Wed, 7 Feb 2001 10:59:55 +0100
In-reply-to: <20010206135932.A27553@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>; from marcelo.magallon@xxxxxxxxxxx on Tue, Feb 06, 2001 at 01:59:32PM +0100
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <20010205104330.A1108@xxxxxxxxxxxxxxx> <200102060200.NAA32442@xxxxxxxxxxxxxxxxxxxxxxx> <20010206135932.A27553@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.3.12i
>> "Marcelo E. Magallon" <marcelo.magallon@xxxxxxxxxxx> writes:

 >  "sh", but the one installed here does).  The attached runas.c solves
 >  this:

 Just a follow up.  With these version of runas 051 succeeds, more or
 less.  Using system(3) you are calling the shell which outputs
 something along the lines of:

 sh: ./file1: Permission denied

 I didn't realize that.  This would fix it:

         if (pid == 0) {
             execvp(cmd[0], cmd);
             fprintf(stderr, "%s: %s\n", cmd[0], strerror(errno));
             exit(127);
         }

 Attached is a patch against current CVS.  051.out needs to be
 regenerated for this to work.

--
Marcelo
                                                     

Attachment: runas.c.diff
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>