aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--conf/filewriter_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/filewriter_windows.go b/conf/filewriter_windows.go
index ca45bf42..f42603b3 100644
--- a/conf/filewriter_windows.go
+++ b/conf/filewriter_windows.go
@@ -45,7 +45,7 @@ func writeEncryptedFile(destination string, overwrite bool, contents []byte) err
if err != nil {
return err
}
- handle, err := windows.CreateFile(tmpDestination16, windows.GENERIC_WRITE|windows.DELETE, 0, sa, windows.CREATE_ALWAYS, windows.FILE_ATTRIBUTE_NORMAL, 0)
+ handle, err := windows.CreateFile(tmpDestination16, windows.GENERIC_WRITE|windows.DELETE, windows.FILE_SHARE_READ, sa, windows.CREATE_ALWAYS, windows.FILE_ATTRIBUTE_NORMAL, 0)
if err != nil {
return err
}