* fhandler_disk_file.cc (fhandler_disk_file::link): Open file with

READ_CONTROL for Vista/Longhorn's sake.
This commit is contained in:
Corinna Vinschen 2008-01-21 14:51:55 +00:00
parent 60308c48f2
commit 755f6f8f65
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-21 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::link): Open file with
READ_CONTROL for Vista/Longhorn's sake.
2008-01-15 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (install-libs): Overwrite newlib's libg.a with symlink

View File

@ -1089,7 +1089,7 @@ fhandler_disk_file::link (const char *newpath)
NTSTATUS status;
OBJECT_ATTRIBUTES attr;
IO_STATUS_BLOCK io;
status = NtOpenFile (&fh, FILE_ANY_ACCESS,
status = NtOpenFile (&fh, READ_CONTROL,
pc.get_object_attr (attr, sec_none_nih), &io,
FILE_SHARE_VALID_FLAGS,
FILE_OPEN_FOR_BACKUP_INTENT | FILE_OPEN_REPARSE_POINT);