Last active
August 29, 2015 14:01
-
-
Save vqvu/d8332f7ce87e13879e5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r aecdc70c44ac src/pkg/syscall/syscall_windows.go | |
--- a/src/pkg/syscall/syscall_windows.go Fri May 23 17:39:58 2014 -0700 | |
+++ b/src/pkg/syscall/syscall_windows.go Sat May 24 02:53:55 2014 -0500 | |
@@ -451,7 +451,7 @@ | |
} | |
h, e := CreateFile(pathp, | |
FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil, | |
- OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0) | |
+ OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0) | |
if e != nil { | |
return e | |
} | |
@@ -471,7 +471,7 @@ | |
} | |
h, e := CreateFile(pathp, | |
FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil, | |
- OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0) | |
+ OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0) | |
if e != nil { | |
return e | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment