Welcome! Log In Create A New Profile

Advanced

[nginx] Dav: changed COPY of a file to preserve access mask.

Maxim Dounin
August 01, 2018 12:24AM
details: http://hg.nginx.org/nginx/rev/8e7a5de61664
branches:
changeset: 7330:8e7a5de61664
user: Maxim Dounin <mdounin@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;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Dav: changed COPY of a file to preserve access mask.

Maxim Dounin 296 August 01, 2018 12:24AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready