diff options
author | earnal <etienne.arnal@gmail.com> | 2021-07-09 22:45:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-12 15:24:29 (GMT) |
commit | 113cc4c684a7fba7bb72284d654e8615b201a018 (patch) | |
tree | b36b0d1eb21065b1e6b8b560df9db938e7ec8a1b /Utilities/cmlibuv | |
parent | a5e865c178b0ce3f273c1131972d8c3733deac4b (diff) | |
download | CMake-113cc4c684a7fba7bb72284d654e8615b201a018.zip CMake-113cc4c684a7fba7bb72284d654e8615b201a018.tar.gz CMake-113cc4c684a7fba7bb72284d654e8615b201a018.tar.bz2 |
libuv: Allow windows UNC path with forward slashes
Fix libuv issue 3159 in CMake while integration in upstream libuv is
pending.
Fixes: #22141
Diffstat (limited to 'Utilities/cmlibuv')
-rw-r--r-- | Utilities/cmlibuv/src/win/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/win/process.c b/Utilities/cmlibuv/src/win/process.c index 04718db..aada889 100644 --- a/Utilities/cmlibuv/src/win/process.c +++ b/Utilities/cmlibuv/src/win/process.c @@ -169,7 +169,10 @@ static WCHAR* search_path_join_test(const WCHAR* dir, size_t cwd_len) { WCHAR *result, *result_pos; DWORD attrs; - if (dir_len > 2 && dir[0] == L'\\' && dir[1] == L'\\') { + if ( + (dir_len > 2 && dir[0] == L'\\' && dir[1] == L'\\') || + (dir_len > 2 && dir[0] == L'/' && dir[1] == L'/') + ) { /* It's a UNC path so ignore cwd */ cwd_len = 0; } else if (dir_len >= 1 && (dir[0] == L'/' || dir[0] == L'\\')) { |