diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-01-21 17:51:55 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-01-21 17:51:55 +0300 |
commit | 755f6f8f650d467aaa8b76570f76515fb357041d (patch) | |
tree | f37b87d17b56abed34479def7f7eb533e448e8ca /winsup | |
parent | 60308c48f21eb34c284a207278159ba079349071 (diff) |
* fhandler_disk_file.cc (fhandler_disk_file::link): Open file with
READ_CONTROL for Vista/Longhorn's sake.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 746472cb1..19aadbedd 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index c68b42687..f660bb06c 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -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); |