changeset 7330:8e7a5de61664

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 01 Aug 2018 02:12:21 +0300
parents 63a76a594dd8
children bb40db0e380d
files src/http/modules/ngx_http_dav_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;