From 251436268e18dbfa2071eb824e55152977ef461c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 30 Sep 2005 10:27:14 +0000 Subject: * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also use attributes stored in this->pc if call to GetFileInformationByHandle failed. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_disk_file.cc | 1 + 2 files changed, 7 insertions(+) (limited to 'winsup') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fb5eefc..b7dcf0a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,11 @@ 2005-09-30 Corinna Vinschen + * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also use + attributes stored in this->pc if call to GetFileInformationByHandle + failed. + +2005-09-30 Corinna Vinschen + * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only write attributes if call to GetFileInformationByHandle was successful. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 3548738..fcd7c9c 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); -- cgit v1.1