* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening

directories under 9x gracefully.
This commit is contained in:
Corinna Vinschen 2005-03-17 12:53:47 +00:00
parent 2e7c4a2ab1
commit 993317d0ed
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-03-17 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
directories under 9x gracefully.
2005-03-17 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::connect): Always set sun_path

View File

@ -806,15 +806,14 @@ fhandler_disk_file::utimes (const struct timeval *tvp)
if (!open (O_WRONLY | O_BINARY, 0))
{
syscall_printf ("Opening file failed");
__seterrno ();
if (pc.isdir ()) /* What we can do with directories more? */
return 0;
__seterrno ();
return -1;
}
}
if (nohandle ()) /* Directory query_open on 9x. */
return 0;
gettimeofday (&tmp[0], 0);
if (!tvp)
{