Skip to content

Commit

Permalink
Merge pull request #24 from Microsoft/fix
Browse files Browse the repository at this point in the history
Pass FILE_FLAG_OPEN_REPARSE_POINT in OpenForBackup
  • Loading branch information
jstarks committed May 20, 2016
2 parents 88d9b9e + f4304cf commit 4f1a717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func OpenForBackup(path string, access uint32, share uint32, createmode uint32)
if err != nil {
return nil, err
}
h, err := syscall.CreateFile(&winPath[0], access, share, nil, createmode, syscall.FILE_FLAG_BACKUP_SEMANTICS, 0)
h, err := syscall.CreateFile(&winPath[0], access, share, nil, createmode, syscall.FILE_FLAG_BACKUP_SEMANTICS|syscall.FILE_FLAG_OPEN_REPARSE_POINT, 0)
if err != nil {
err = &os.PathError{Op: "open", Path: path, Err: err}
return nil, err
Expand Down

0 comments on commit 4f1a717

Please sign in to comment.