mirror of
https://github.com/mirror/make.git
synced 2025-03-27 12:31:23 +08:00
[SV 63638] Fix processing PATH on MS-Windows
* src/variable.c (sync_Path_environment): Pass only the value of PATH to convert_Path_to_windows32, excluding the "PATH=" part.
This commit is contained in:
parent
b99b6cdf3c
commit
f51fc130cc
@ -2005,8 +2005,10 @@ sync_Path_environment ()
|
|||||||
if (!path)
|
if (!path)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Convert PATH into something WINDOWS32 world can grok. */
|
/* Convert the value of PATH into something WINDOWS32 world can grok.
|
||||||
convert_Path_to_windows32 (path, ';');
|
Note: convert_Path_to_windows32 must see only the value of PATH,
|
||||||
|
and see it from its first character, to do its tricky job. */
|
||||||
|
convert_Path_to_windows32 (path + CSTRLEN ("PATH="), ';');
|
||||||
|
|
||||||
environ_path = path;
|
environ_path = path;
|
||||||
putenv (environ_path);
|
putenv (environ_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user