# HG changeset patch # User Maxim Dounin # Date 1533078741 -10800 # Node ID 8e7a5de61664d5e152d83ecb5d06c635387e0e4b # Parent 63a76a594dd8f5dfb393c941d90e1019fd776283 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 --- 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;