* Don't make the builder executable.
This commit is contained in:
parent
1cb030736e
commit
83075304e5
1 changed files with 0 additions and 4 deletions
|
@ -86,10 +86,6 @@ void runProgram(const string & program, Environment env)
|
||||||
if (dup2(STDERR_FILENO, STDOUT_FILENO) == -1)
|
if (dup2(STDERR_FILENO, STDOUT_FILENO) == -1)
|
||||||
throw SysError("cannot dup stderr into stdout");
|
throw SysError("cannot dup stderr into stdout");
|
||||||
|
|
||||||
/* Make the program executable. !!! hack. */
|
|
||||||
if (chmod(program.c_str(), 0755))
|
|
||||||
throw SysError("cannot make program executable");
|
|
||||||
|
|
||||||
/* Execute the program. This should not return. */
|
/* Execute the program. This should not return. */
|
||||||
execle(program.c_str(), baseNameOf(program).c_str(), 0, env2);
|
execle(program.c_str(), baseNameOf(program).c_str(), 0, env2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue