diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-01-24 19:30:09 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-01-24 19:30:09 +0300 |
commit | 01d2675aea7b71f63ced4dbd7e9e7c88555f9691 (patch) | |
tree | a6a8729146a8af877d82ffa403a8c7b9d9cdd7a7 /winsup/cygwin/mount.cc | |
parent | 7d011649007b053ba8766a46c1855d67b4c12ee0 (diff) |
* mount.cc (mount_info::from_fstab): Open fstab file with
FILE_OPEN_FOR_BACKUP_INTENT flag.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r-- | winsup/cygwin/mount.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 67998b24c..0797d1bb3 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -943,7 +943,9 @@ mount_info::from_fstab (bool user, WCHAR fstab[], PWCHAR fstab_end) InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE, NULL, NULL); debug_printf ("Try to read mounts from %W", fstab); status = NtOpenFile (&fh, SYNCHRONIZE | FILE_READ_DATA, &attr, &io, - FILE_SHARE_VALID_FLAGS, FILE_SYNCHRONOUS_IO_NONALERT); + FILE_SHARE_VALID_FLAGS, + FILE_SYNCHRONOUS_IO_NONALERT + | FILE_OPEN_FOR_BACKUP_INTENT); if (!NT_SUCCESS (status)) { debug_printf ("NtOpenFile(%S) failed, %p", &upath, status); |