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
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-03-29 19:02:50 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-03-29 19:02:50 +0400
commitce3d89938b36b9d55cbfa40814347b8c10910db8 (patch)
tree65b2a2423b7b913b0512572a235392d9d8123129
parentf1c6730ba3460033fd796c96b9e061835f178be7 (diff)
* fhandler.cc (fhandler_base::fstat): Keep st_ctime and st_birthtime
fixed to 2006-12-01 00:00 UTC.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.cc11
2 files changed, 13 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0e1e6a2bc..83c281a57 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2010-03-29 Corinna Vinschen <corinna@vinschen.de>
+ * fhandler.cc (fhandler_base::fstat): Keep st_ctime and st_birthtime
+ fixed to 2006-12-01 00:00 UTC.
+
+2010-03-29 Corinna Vinschen <corinna@vinschen.de>
+
* libc/rcmd.c: Enable IPv6.
2010-03-28 Christopher Faylor <me+cygwin@cgf.cx>
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 847ac78a5..0e0981fdc 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1100,10 +1100,15 @@ fhandler_base::fstat (struct __stat64 *buf)
buf->st_gid = getegid32 ();
buf->st_nlink = 1;
buf->st_blksize = PREFERRED_IO_BLKSIZE;
- buf->st_ctim.tv_sec = time (NULL); /* Arbitrary value: current time,
- like Linux */
+
+ 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_birthtim = buf->st_ctim;
+ buf->st_birthtim = buf->st_ctim;
+ buf->st_mtim.tv_sec = time (NULL); /* Arbitrary value: current time,
+ like Linux */
+ buf->st_mtim.tv_nsec = 0L;
+ buf->st_atim = buf->st_mtim;
+
return 0;
}