* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
directories under 9x gracefully.
This commit is contained in:
parent
2e7c4a2ab1
commit
993317d0ed
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue