From 139654836c22868a445daea54ce084553ac234b0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 26 Feb 2007 14:19:00 +0000 Subject: [PATCH] * fhandler.cc (fhandler_base::fstat): Set all file times to arbitrary fixed value. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a95c5f567..54af60a48 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-02-26 Corinna Vinschen + + * fhandler.cc (fhandler_base::fstat): Set all file times to arbitrary + fixed value. + 2007-02-26 Corinna Vinschen * fhandler_registry.cc (registry_listing): Drop name of HKEY_DYN_DATA. diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 2a92d63dd..864a4e66e 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -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; }