diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-02-26 17:19:00 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-02-26 17:19:00 +0300 |
commit | 139654836c22868a445daea54ce084553ac234b0 (patch) | |
tree | 75ba185e4119f5478eb826a776156e09d2455e2f /winsup | |
parent | 14e06cca26d10be79606054ff17eecc573db25db (diff) |
* fhandler.cc (fhandler_base::fstat): Set all file times to arbitrary
fixed value.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a95c5f567..54af60a48 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. 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; } |