From 4d6db4a7ab7c521f60930548e85c450d43869d0c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 11 Feb 2011 08:02:35 +0000 Subject: [PATCH] set current atime while setting mtime patch by Andrei Nigmatulin --- src/os/unix/ngx_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;