* 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:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user