diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-12-13 11:54:28 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-12-13 11:54:28 +0000 |
commit | 3780d205cd7db141fd97c625100dafe69cd66407 (patch) | |
tree | 4a938eab601a8b4b66a76ee2ad68aab701e5a1ff /winsup/cygwin/fhandler_disk_file.cc | |
parent | 74365d9715432f55a2395b443c0dc3fc37b84e33 (diff) | |
download | cygnal-3780d205cd7db141fd97c625100dafe69cd66407.tar.gz cygnal-3780d205cd7db141fd97c625100dafe69cd66407.tar.bz2 cygnal-3780d205cd7db141fd97c625100dafe69cd66407.zip |
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Call
file_get_fnoi instead of NtQueryInformationFile.
* path.cc (file_get_fnoi): New helper function to collect a
FILE_NETWORK_OPEN_INFORMATION block.
(symlink_info::check): Call file_get_fnoi rather than
NtQueryInformationFile to collect a FILE_NETWORK_OPEN_INFORMATION block.
* path.h (file_get_fnoi): Declare.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 7f92e8e28..37040fbd5 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -347,9 +347,7 @@ fhandler_base::fstat_by_handle (struct __stat64 *buf) on the information stored in pc.fnoi. So we overwrite them here. */ if (get_io_handle ()) { - PFILE_NETWORK_OPEN_INFORMATION pfnoi = pc.fnoi (); - status = NtQueryInformationFile (h, &io, pfnoi, sizeof *pfnoi, - FileNetworkOpenInformation); + status = file_get_fnoi (h, pc.fs_is_netapp (), pc.fnoi ()); if (!NT_SUCCESS (status)) { debug_printf ("%p = NtQueryInformationFile(%S, " |