* fhandler.cc (fhandler_base::fstat): Set st_mtime time to current time.
This commit is contained in:
parent
c019a66c32
commit
e2402ed859
@ -1,3 +1,7 @@
|
||||
2010-03-28 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* fhandler.cc (fhandler_base::fstat): Set st_mtime time to current time.
|
||||
|
||||
2010-03-28 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* globals.cc (exit_status): Add new ES_EXIT_STARTING enum.
|
||||
|
@ -1100,7 +1100,8 @@ 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 = 1164931200L; /* Arbitrary value: 2006-12-01 */
|
||||
buf->st_ctim.tv_sec = time (NULL); /* Arbitrary value: current time,
|
||||
like Linux */
|
||||
buf->st_ctim.tv_nsec = 0L;
|
||||
buf->st_atim = buf->st_mtim = buf->st_birthtim = buf->st_ctim;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user