diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-30 14:27:14 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-30 14:27:14 +0400 |
commit | 251436268e18dbfa2071eb824e55152977ef461c (patch) | |
tree | 7c200ef2cd8b03ff6917640a6b24f2150e546820 /winsup/cygwin | |
parent | 04f3d97fe44183782be0ac4016e6dabcc960d2c5 (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')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fb5eefc73..b7dcf0a3a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,11 @@ 2005-09-30 Corinna Vinschen <corinna@vinschen.de> + * 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 <corinna@vinschen.de> + * 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 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); |