* mount.cc (mount_info::from_fstab): Open fstab file with
FILE_OPEN_FOR_BACKUP_INTENT flag.
This commit is contained in:
parent
7d01164900
commit
01d2675aea
@ -1,3 +1,8 @@
|
|||||||
|
2009-01-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* mount.cc (mount_info::from_fstab): Open fstab file with
|
||||||
|
FILE_OPEN_FOR_BACKUP_INTENT flag.
|
||||||
|
|
||||||
2009-01-23 Corinna Vinschen <corinna@vinschen.de>
|
2009-01-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* smallprint.cc (__small_vsprintf): Use already available buffer tmp
|
* smallprint.cc (__small_vsprintf): Use already available buffer tmp
|
||||||
|
@ -943,7 +943,9 @@ mount_info::from_fstab (bool user, WCHAR fstab[], PWCHAR fstab_end)
|
|||||||
InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
||||||
debug_printf ("Try to read mounts from %W", fstab);
|
debug_printf ("Try to read mounts from %W", fstab);
|
||||||
status = NtOpenFile (&fh, SYNCHRONIZE | FILE_READ_DATA, &attr, &io,
|
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))
|
if (!NT_SUCCESS (status))
|
||||||
{
|
{
|
||||||
debug_printf ("NtOpenFile(%S) failed, %p", &upath, status);
|
debug_printf ("NtOpenFile(%S) failed, %p", &upath, status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user