From 933ef2effe245d02f831871aeae0fbc4e2961759 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 1 Aug 2018 02:12:21 +0300 Subject: [PATCH] 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. --- src/http/modules/ngx_http_dav_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;