diff options
| author | Brad King <brad.king@kitware.com> | 2021-05-06 14:39:05 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2021-05-07 12:30:52 (GMT) |
| commit | d7522b8f864db8df25b99eeabc625e55ad690a3e (patch) | |
| tree | 6f9bc3bcbc373f103696c8c20565b45d7c6a45cf /Tests/RunCMake/FileAPI/ClientStateless-check.py | |
| parent | e0b4a22ca6874a15912eea86cde16f47cb5f9d93 (diff) | |
| download | CMake-d7522b8f864db8df25b99eeabc625e55ad690a3e.zip CMake-d7522b8f864db8df25b99eeabc625e55ad690a3e.tar.gz CMake-d7522b8f864db8df25b99eeabc625e55ad690a3e.tar.bz2 | |
cmSystemTools: Improve CreateLink and CreateSymlink error codes
In commit 7f89053953 (cmSystemTools: Return KWSys Status from CreateLink
and CreateSymlink, 2021-04-15) we just took the `-err` from libuv and
treated it as a POSIX error. This is accurate on POSIX, but on Windows
does not match the POSIX error codes.
Use `uv_fs_get_system_error` to get the actual system error code.
This requires libuv 1.38 or higher. Require that for Windows, but
fall back to the previous approach on POSIX.
Diffstat (limited to 'Tests/RunCMake/FileAPI/ClientStateless-check.py')
0 files changed, 0 insertions, 0 deletions
