mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
set current atime while setting mtime
patch by Andrei Nigmatulin
This commit is contained in:
parent
64d5f9ba26
commit
4d6db4a7ab
@ -245,7 +245,7 @@ ngx_set_file_time(u_char *name, ngx_fd_t fd, time_t s)
|
|||||||
{
|
{
|
||||||
struct timeval tv[2];
|
struct timeval tv[2];
|
||||||
|
|
||||||
tv[0].tv_sec = s;
|
tv[0].tv_sec = ngx_time();
|
||||||
tv[0].tv_usec = 0;
|
tv[0].tv_usec = 0;
|
||||||
tv[1].tv_sec = s;
|
tv[1].tv_sec = s;
|
||||||
tv[1].tv_usec = 0;
|
tv[1].tv_usec = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user