* fhandler.cc (fhandler_base::fstat): Keep st_ctime and st_birthtime

fixed to 2006-12-01 00:00 UTC.
This commit is contained in:
Corinna Vinschen 2010-03-29 15:02:50 +00:00
parent f1c6730ba3
commit ce3d89938b
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;
}