* uinfo.cc (pwdgrp::load): Open file with FILE_OPEN_FOR_BACKUP_INTENT

flag.
This commit is contained in:
Corinna Vinschen 2009-01-26 13:03:49 +00:00
parent 01d2675aea
commit 93e884989a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-01-26 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (pwdgrp::load): Open file with FILE_OPEN_FOR_BACKUP_INTENT
flag.
2009-01-24 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (mount_info::from_fstab): Open fstab file with

View File

@ -543,7 +543,9 @@ pwdgrp::load (const wchar_t *rel_path)
paranoid_printf ("%S", &upath);
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))
{
paranoid_printf ("NtOpenFile(%S) failed, status %p", &upath, status);