|
@@ -1590,8 +1590,8 @@ Begin
|
|
|
if pid=0 then
|
|
|
begin
|
|
|
{The child does the actual exec, and then exits}
|
|
|
- fpexecv(PAnsiChar(pointer(LPath)),Cmdline2);
|
|
|
- { If the execve fails, we return an exitvalue of 127, to let it be known}
|
|
|
+ fpexecve(PAnsiChar(pointer(LPath)),Cmdline2,envp);
|
|
|
+ { If the execve fails, we return an exitvalue of 127, to let it be known}
|
|
|
fpExit(127);
|
|
|
end
|
|
|
else
|