diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-06-17 14:25:15 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-06-17 14:25:15 +0400 |
commit | 4365c1598b638364e8eb144af6988c77534e372c (patch) | |
tree | d3e6075c94d6f5a2633c714df2341c8b8cf685ab /winsup/cygwin/fhandler_disk_file.cc | |
parent | 1ec02cef38ef61a7e1de90f85ac2c4254648a458 (diff) |
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat
handle only after checking for NFS.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 04b6e3cd8..00d4d4a4e 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -333,7 +333,6 @@ fhandler_base::fstat_by_handle (struct __stat64 *buf) { NTSTATUS status; IO_STATUS_BLOCK io; - HANDLE h = get_stat_handle (); if (pc.fs_is_nfs ()) return fstat_by_nfs_ea (buf); @@ -350,6 +349,8 @@ fhandler_base::fstat_by_handle (struct __stat64 *buf) FILE_STANDARD_INFORMATION fsi; FILE_INTERNAL_INFORMATION fii; + HANDLE h = get_stat_handle (); + if (pc.has_buggy_basic_info ()) { status = NtQueryInformationFile (h, &io, &fi, sizeof fi, |