* fhandler_disk_file.cc (fhandler_base::utimes_fs): Ignore

ERROR_NOT_SUPPORTED to workaround Win9x weirdness.
	* path.cc (symlink_info::check): Remap ERROR_INVALID_FUNTION to
	ERROR_FILE_NOT_FOUND for the same reason.
This commit is contained in:
Corinna Vinschen
2005-04-16 17:17:33 +00:00
parent 68a3f0d34a
commit 68401acd24
3 changed files with 18 additions and 2 deletions

View File

@@ -870,7 +870,9 @@ fhandler_base::utimes_fs (const struct timeval *tvp)
DWORD errcode = GetLastError ();
if (is_fs_special ())
SetFileAttributes (pc, pc);
if (!res)
/* Opening a directory on a 9x share from a NT machine works(!), but
then the SetFileTimes fails with ERROR_NOT_SUPPORTED. Oh well... */
if (!res && errcode != ERROR_NOT_SUPPORTED)
{
close ();
__seterrno_from_win_error (errcode);