aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-03-17 12:53:47 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-03-17 12:53:47 +0000
commit993317d0ed9a7bee9b461e63a762b6df249ef867 (patch)
tree4536d76de00003946d51c3de841d025e304c1ecc /winsup/cygwin
parent2e7c4a2ab1f135dba4df9787d5a4dd62bca33edf (diff)
downloadnewlib-993317d0ed9a7bee9b461e63a762b6df249ef867.zip
newlib-993317d0ed9a7bee9b461e63a762b6df249ef867.tar.gz
newlib-993317d0ed9a7bee9b461e63a762b6df249ef867.tar.bz2
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Handle opening
directories under 9x gracefully.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc7
2 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 9f05483..4768c04 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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
in case of a successful or pending connect.
(fhandler_socket::accept): Don't run secret event and eid credential
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index f8d708e..7842bca 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -807,14 +807,13 @@ fhandler_disk_file::utimes (const struct timeval *tvp)
{
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)
{