mirror of
https://github.com/nginx/nginx.git
synced 2024-12-22 15:13:28 -06:00
Dav: changed COPY of a file to preserve access mask.
The behaviour is now in line with COPY of a directory with contents, which preserves access masks on individual files, as well as the "cp" command. Requested by Roman Arutyunyan.
This commit is contained in:
parent
9e0d1236f1
commit
04a6d9d3c9
@ -845,7 +845,7 @@ overwrite_done:
|
|||||||
|
|
||||||
cf.size = ngx_file_size(&fi);
|
cf.size = ngx_file_size(&fi);
|
||||||
cf.buf_size = 0;
|
cf.buf_size = 0;
|
||||||
cf.access = dlcf->access;
|
cf.access = ngx_file_access(&fi);
|
||||||
cf.time = ngx_file_mtime(&fi);
|
cf.time = ngx_file_mtime(&fi);
|
||||||
cf.log = r->connection->log;
|
cf.log = r->connection->log;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user