From 1737c1ea52c98cc0f1babca0d68e3c207a666e96 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 a6c8b32ba9c5..460f0bee022b 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);