diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-04-13 11:07:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-04-13 11:07:44 +0000 |
commit | 726fe4180779219083d1abcc7a71f233f037747c (patch) | |
tree | 7cae05b0ec76125a51454f14a3885f7aa4a92a10 /winsup | |
parent | 353d0a275c306b9a73bc5a243f17b5129b216ab2 (diff) | |
download | newlib-726fe4180779219083d1abcc7a71f233f037747c.zip newlib-726fe4180779219083d1abcc7a71f233f037747c.tar.gz newlib-726fe4180779219083d1abcc7a71f233f037747c.tar.bz2 |
* 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/ChangeLog | 10 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 1 |
2 files changed, 7 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 958941e..c147d61 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 118308a..fce53e9 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; } } |