From: Eli Zaretskii Date: Mon, 31 Aug 2009 17:54:11 +0000 (+0000) Subject: * function.c (windows32_openpipe): Update envp after calling X-Git-Tag: 3.82~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70c726c875f97ca5f3e46e4cfab7af9649f13023;p=thirdparty%2Fmake.git * function.c (windows32_openpipe): Update envp after calling sync_Path_environment. --- diff --git a/ChangeLog b/ChangeLog index 26abd127..0a6c5b23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-31 Eli Zaretskii + + * function.c (windows32_openpipe): Update envp after calling + sync_Path_environment. + 2009-08-01 Paul Smith * expand.c (expand_argument): If the argument is large enough use diff --git a/function.c b/function.c index c7e1d4fe..2e6d5cb2 100644 --- a/function.c +++ b/function.c @@ -1480,6 +1480,9 @@ windows32_openpipe (int *pipedes, int *pid_p, char **command_argv, char **envp) /* make sure that CreateProcess() has Path it needs */ sync_Path_environment(); + /* `sync_Path_environment' may realloc `environ', so take note of + the new value. */ + envp = environ; if (!process_begin(hProcess, command_argv, envp, command_argv[0], NULL)) { /* register process for wait */