From 9b1b44b41c2b1efe272985af44eaae84b9c4af1c Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Mon, 9 Mar 2020 00:52:28 -0700 Subject: [PATCH] Windows: Fix std.fs.realpath/os.realpathW for directories --- lib/std/os.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os.zig b/lib/std/os.zig index a6c8b32ba9..460f0bee02 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -3077,7 +3077,7 @@ pub fn realpathW(pathname: [*:0]const u16, out_buffer: *[MAX_PATH_BYTES]u8) Real windows.FILE_SHARE_READ, null, windows.OPEN_EXISTING, - windows.FILE_ATTRIBUTE_NORMAL, + windows.FILE_FLAG_BACKUP_SEMANTICS, null, ); defer windows.CloseHandle(h_file);