diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-09-30 08:05:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-09-30 08:05:42 +0000 |
commit | 04f3d97fe44183782be0ac4016e6dabcc960d2c5 (patch) | |
tree | a20a90675e737a7aad70dd5ea0114f1bac0564c0 /winsup/cygwin/fhandler_disk_file.cc | |
parent | 40c7d132ef0a3084552fd8444c4d31f162f99611 (diff) | |
download | cygnal-04f3d97fe44183782be0ac4016e6dabcc960d2c5.tar.gz cygnal-04f3d97fe44183782be0ac4016e6dabcc960d2c5.tar.bz2 cygnal-04f3d97fe44183782be0ac4016e6dabcc960d2c5.zip |
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only write
attributes if call to GetFileInformationByHandle was successful.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 4682184f1..354873810 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -163,8 +163,8 @@ fhandler_base::fstat_by_handle (struct __stat64 *buf) if (local.nFileSizeLow == 0xffffffff && GetLastError ()) local.nFileSizeLow = 0; } - - pc.set_attributes (local.dwFileAttributes); + else + pc.set_attributes (local.dwFileAttributes); return fstat_helper (buf, local.ftLastWriteTime, /* see fstat_helper comment */ local.ftLastAccessTime, |