* fhandler_disk_file.cc (fhandler_disk_file::utimes): Don't set errno

if open fails, it has already been set by open.
This commit is contained in:
Corinna Vinschen 2005-04-13 11:07:44 +00:00
parent 353d0a275c
commit 726fe41807
2 changed files with 7 additions and 4 deletions

View File

@ -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.

View File

@ -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;
}
}