OSDN Git Service

* fhandler.cc (fhandler_base::fstat): Set all file times to arbitrary
authorcorinna <corinna>
Mon, 26 Feb 2007 14:19:00 +0000 (14:19 +0000)
committercorinna <corinna>
Mon, 26 Feb 2007 14:19:00 +0000 (14:19 +0000)
fixed value.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc

index a95c5f5..54af60a 100644 (file)
@@ -1,5 +1,10 @@
 2007-02-26  Corinna Vinschen  <corinna@vinschen.de>
 
+       * fhandler.cc (fhandler_base::fstat): Set all file times to arbitrary
+       fixed value.
+
+2007-02-26  Corinna Vinschen  <corinna@vinschen.de>
+
        * fhandler_registry.cc (registry_listing): Drop name of HKEY_DYN_DATA.
        (registry_keys): Drop HKEY_DYN_DATA.
        * net.cc: Fix comment.
index 2a92d63..864a4e6 100644 (file)
@@ -1138,7 +1138,8 @@ fhandler_base::fstat (struct __stat64 *buf)
   buf->st_gid = getegid32 ();
   buf->st_nlink = 1;
   buf->st_blksize = PREFERRED_IO_BLKSIZE;
-  time_as_timestruc_t (&buf->st_ctim);
+  buf->st_ctim.tv_sec = 1164931200L;   /* Arbitrary value: 2006-12-01 */
+  buf->st_ctim.tv_nsec = 0L;
   buf->st_atim = buf->st_mtim = buf->st_ctim;
   return 0;
 }