aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2018-08-01 02:12:21 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2018-08-01 02:12:21 +0300
commit04a6d9d3c963f1a22e510ff9f7b0d797dffec33d (patch)
treef217b94f0bb37a94279304e72704969261d83e0c /src
parent9e0d1236f16ad51828b91ca2ded211c9a96cba72 (diff)
downloadnginx-04a6d9d3c963f1a22e510ff9f7b0d797dffec33d.tar.gz
nginx-04a6d9d3c963f1a22e510ff9f7b0d797dffec33d.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_dav_module.c2
1 files changed, 1 insertions, 1 deletions
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;