Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-04-13 15:07:44 +0400
committerCorinna Vinschen <corinna@vinschen.de>2005-04-13 15:07:44 +0400
commit726fe4180779219083d1abcc7a71f233f037747c (patch)
tree7cae05b0ec76125a51454f14a3885f7aa4a92a10 /winsup
parent353d0a275c306b9a73bc5a243f17b5129b216ab2 (diff)
* fhandler_disk_file.cc (fhandler_disk_file::utimes): Don't set errno
if open fails, it has already been set by open.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog10
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc1
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 958941efe..c147d6156 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-13 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_disk_file.cc (fhandler_disk_file::utimes): Don't set errno
+ if open fails, it has already been set by open.
+
2005-04-12 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (NtQueryVolumeInformationFile): Add.
@@ -6,8 +11,7 @@
(fhandler_base::status): Revert has_changed to a simple bit.
(fhandler_base::fstat_helper): Add nAllocSize parameter. Rename
ftCreationTime to ftChangeTime.
- * fhandler_disk_file.cc:
- Call fstat_helper with additional
+ * fhandler_disk_file.cc: Call fstat_helper with additional
allocation size throughout.
(fhandler_base::fstat_by_handle): Use NT native functions to get
full file information on NT. Call fstat_helper with LastWriteTime
@@ -200,7 +204,7 @@
(fhandler_base::has_changed): Implement with type change_state.
* fhandler.cc (fhandler_base::raw_write): Accommodate type change
of has_changed.
- * fhandler_disk_file.cc )fhandler_disk_file::touch_ctime): Also
+ * fhandler_disk_file.cc (fhandler_disk_file::touch_ctime): Also
touch modification time if has_changed == data_changed.
(fhandler_disk_file::fchmod): Also open on 9x, otherwise we can't
touch ctime. Accommodate type change of has_changed.
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 118308ab4..fce53e985 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -841,7 +841,6 @@ fhandler_disk_file::utimes (const struct timeval *tvp)
if (!open (O_WRONLY | O_BINARY, 0))
{
syscall_printf ("Opening file failed");
- __seterrno ();
return -1;
}
}