[nginx] Dav: changed COPY of a file to preserve access mask.
Maxim Dounin
mdounin at mdounin.ru
Wed Aug 1 04:21:37 UTC 2018
details: http://hg.nginx.org/nginx/rev/8e7a5de61664
branches:
changeset: 7330:8e7a5de61664
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed Aug 01 02:12:21 2018 +0300
description:
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:
src/http/modules/ngx_http_dav_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
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;
More information about the nginx-devel
mailing list