diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-01-11 15:44:56 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-01-11 15:44:56 +0200 |
commit | f51fc130cc8fe687cef68e5192e71c6a269c92a0 (patch) | |
tree | ca14a19f19ea860b9d7a0886ea81914edecdb5b1 /src | |
parent | b99b6cdf3c18ee96da1775f7300d463fe5fe7ebb (diff) | |
download | make-git-f51fc130cc8fe687cef68e5192e71c6a269c92a0.tar.gz |
[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.
Diffstat (limited to 'src')
-rw-r--r-- | src/variable.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/variable.c b/src/variable.c index 7b625aee..259093f8 100644 --- a/src/variable.c +++ b/src/variable.c @@ -2005,8 +2005,10 @@ sync_Path_environment () if (!path) return; - /* Convert PATH into something WINDOWS32 world can grok. */ - convert_Path_to_windows32 (path, ';'); + /* Convert the value of PATH into something WINDOWS32 world can grok. + 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; putenv (environ_path); |