Index: native-src/linux.IA32/luni/procimpl.c =================================================================== --- native-src/linux.IA32/luni/procimpl.c (revision 380105) +++ native-src/linux.IA32/luni/procimpl.c (working copy) @@ -22,6 +22,8 @@ #include #include #include +extern char **environ; + #include #include "procimpl.h" @@ -126,10 +128,10 @@ chdir (dir); /* ===try to perform the execv : on success, it does not return ===== */ - if (envSize == 0) - rc = execvp (cmd, command); - else - rc = execve (cmd, command, env); + if (envSize != 0) + environ = env; + + rc = execvp (cmd, command); /* ===================================================== */ /* if we get here ==> tell the parent that the execv failed ! */