* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only write

attributes if call to GetFileInformationByHandle was successful.
This commit is contained in:
Corinna Vinschen 2005-09-30 08:05:42 +00:00
parent 40c7d132ef
commit 04f3d97fe4
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.
2005-09-29 Christopher Faylor <cgf@timesys.com>
* fork.cc (frok::parent): Simplify error messages. Don't issue an

View File

@ -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,