From: Maxim Dounin Date: Tue, 31 Jul 2018 23:12:21 +0000 (+0300) Subject: Dav: changed COPY of a file to preserve access mask. X-Git-Tag: release-1.15.3~13 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=04a6d9d3c963f1a22e510ff9f7b0d797dffec33d;p=nginx.git 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. --- diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c index 55ad9eb19..2d138c15d 100644 --- a/src/http/modules/ngx_http_dav_module.c +++ b/src/http/modules/ngx_http_dav_module.c @@ -845,7 +845,7 @@ overwrite_done: cf.size = ngx_file_size(&fi); cf.buf_size = 0; - cf.access = dlcf->access; + cf.access = ngx_file_access(&fi); cf.time = ngx_file_mtime(&fi); cf.log = r->connection->log;