* fhandler_disk_file.cc (fhandler_disk_file::link): Open file with
READ_CONTROL for Vista/Longhorn's sake.
This commit is contained in:
parent
60308c48f2
commit
755f6f8f65
|
@ -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>
|
2008-01-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* Makefile.in (install-libs): Overwrite newlib's libg.a with symlink
|
* Makefile.in (install-libs): Overwrite newlib's libg.a with symlink
|
||||||
|
|
|
@ -1089,7 +1089,7 @@ fhandler_disk_file::link (const char *newpath)
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
OBJECT_ATTRIBUTES attr;
|
OBJECT_ATTRIBUTES attr;
|
||||||
IO_STATUS_BLOCK io;
|
IO_STATUS_BLOCK io;
|
||||||
status = NtOpenFile (&fh, FILE_ANY_ACCESS,
|
status = NtOpenFile (&fh, READ_CONTROL,
|
||||||
pc.get_object_attr (attr, sec_none_nih), &io,
|
pc.get_object_attr (attr, sec_none_nih), &io,
|
||||||
FILE_SHARE_VALID_FLAGS,
|
FILE_SHARE_VALID_FLAGS,
|
||||||
FILE_OPEN_FOR_BACKUP_INTENT | FILE_OPEN_REPARSE_POINT);
|
FILE_OPEN_FOR_BACKUP_INTENT | FILE_OPEN_REPARSE_POINT);
|
||||||
|
|
Loading…
Reference in New Issue