diff options
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 7c2aaf03b..491b55916 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -443,7 +443,7 @@ fhandler_disk_file::fstat (struct __stat64 *buf) } void -fhandler_disk_file::touch_ctime (void) +fhandler_disk_file::touch_ctime () { FILETIME ft; @@ -966,9 +966,12 @@ out: int fhandler_disk_file::close () { - /* Changing inode data requires setting ctime (only 9x). */ - if (has_changed ()) - touch_ctime (); + if (!hExeced) + { + /* Changing inode data requires setting ctime (only 9x). */ + if (has_changed ()) + touch_ctime (); + } return close_fs (); } |