diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2023-08-10 02:27:24 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2023-08-15 15:52:33 -0700 |
| commit | 19b219bc8adbfeb1d1a9faa691563a8e3ff390b8 (patch) | |
| tree | cb907f834adcde3dd47bd1a0fbba12e0a9db969f /lib/std/Build/Cache.zig | |
| parent | 3e691157847e4787cb61265e42fcbf89336b4c3a (diff) | |
| download | zig-19b219bc8adbfeb1d1a9faa691563a8e3ff390b8.tar.gz zig-19b219bc8adbfeb1d1a9faa691563a8e3ff390b8.zip | |
Fix windows.CreateSymbolicLink/ReadLink for non-relative paths
This fixes a few things:
- Previously, CreateSymbolicLink would always create a relative link if a `dir` was provided, but the relative-ness of a link should be determined by the target path, not the null-ness of the `dir`.
- Special handling is now done to symlink to 'rooted' paths correctly (they are treated as a relative link, which is different than how the xToPrefixedFileW functions treat them)
- ReadLink now correctly supports UNC paths via a new `ntToWin32Namespace` function which intends to be an analog of `RtlNtPathNameToDosPathName` (RtlNtPathNameToDosPathName is not used because it seems to heap allocate as it takes an RTL_UNICODE_STRING_BUFFER)
Diffstat (limited to 'lib/std/Build/Cache.zig')
0 files changed, 0 insertions, 0 deletions
