diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-30 10:27:14 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-30 10:27:14 +0000 |
commit | 251436268e18dbfa2071eb824e55152977ef461c (patch) | |
tree | 7c200ef2cd8b03ff6917640a6b24f2150e546820 /winsup | |
parent | 04f3d97fe44183782be0ac4016e6dabcc960d2c5 (diff) | |
download | newlib-251436268e18dbfa2071eb824e55152977ef461c.zip newlib-251436268e18dbfa2071eb824e55152977ef461c.tar.gz newlib-251436268e18dbfa2071eb824e55152977ef461c.tar.bz2 |
* 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')
-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 fb5eefc..b7dcf0a 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 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); |