diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-02-11 11:02:35 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-02-11 11:02:35 +0300 |
commit | 4d6db4a7ab7c521f60930548e85c450d43869d0c (patch) | |
tree | 9e4b997d3a3ba7d36e064b0ee27cfcd6e54571b3 /src/os | |
parent | 64d5f9ba268f48170ac6a0d188d934de442072fe (diff) |
set current atime while setting mtime
patch by Andrei Nigmatulin
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/unix/ngx_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c index c50e2014b..89ab8d6bc 100644 --- a/src/os/unix/ngx_files.c +++ b/src/os/unix/ngx_files.c @@ -245,7 +245,7 @@ ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s) { struct timeval tv[2]; - tv[0].tv_sec = s; + tv[0].tv_sec = ngx_time(); tv[0].tv_usec = 0; tv[1].tv_sec = s; tv[1].tv_usec = 0; |