Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-09-30 14:27:14 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-09-30 14:27:14 +0400
commit251436268e18dbfa2071eb824e55152977ef461c (patch)
tree7c200ef2cd8b03ff6917640a6b24f2150e546820 /winsup/cygwin/fhandler_disk_file.cc
parent04f3d97fe44183782be0ac4016e6dabcc960d2c5 (diff)
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also use
attributes stored in this->pc if call to GetFileInformationByHandle failed.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 354873810..fcd7c9cdb 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -162,6 +162,7 @@ fhandler_base::fstat_by_handle (struct __stat64 *buf)
on shares. In this case reset filesize to 0. */
if (local.nFileSizeLow == 0xffffffff && GetLastError ())
local.nFileSizeLow = 0;
+ local.dwFileAttributes = DWORD (pc);
}
else
pc.set_attributes (local.dwFileAttributes);