* 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:
parent
04f3d97fe4
commit
251436268e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue