* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Also use

attributes stored in this->pc if call to GetFileInformationByHandle
	failed.
This commit is contained in:
Corinna Vinschen 2005-09-30 10:27:14 +00:00
parent 04f3d97fe4
commit 251436268e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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);