diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-01-26 16:03:49 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-01-26 16:03:49 +0300 |
commit | 93e884989afd2f702c758a9b635c9ea9ca394280 (patch) | |
tree | 7c9de633655b6222df87e285c6ab1848c66778d5 /winsup/cygwin/uinfo.cc | |
parent | 01d2675aea7b71f63ced4dbd7e9e7c88555f9691 (diff) |
* uinfo.cc (pwdgrp::load): Open file with FILE_OPEN_FOR_BACKUP_INTENT
flag.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 9b6733f22..8ca382bfe 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -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); |