diff options
author | CoprDistGit <infra@openeuler.org> | 2024-06-24 09:28:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-06-24 09:28:20 +0000 |
commit | 280bbc9f05f9b04b84eb09eb8203a6be3c447728 (patch) | |
tree | 2edc910c2787f804c5d3bb1f23149c7d128264c4 /nginx-1.12.1-logs-perm.patch | |
parent | 66814c3ea8b692a1c21f643660867e8deb6393cb (diff) |
automatic import of nginxopeneuler24.03_LTSopeneuler22.03_LTS_SP3openeuler20.03_LTS_SP4openeuler20.03
Diffstat (limited to 'nginx-1.12.1-logs-perm.patch')
-rw-r--r-- | nginx-1.12.1-logs-perm.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nginx-1.12.1-logs-perm.patch b/nginx-1.12.1-logs-perm.patch new file mode 100644 index 0000000..4884a84 --- /dev/null +++ b/nginx-1.12.1-logs-perm.patch @@ -0,0 +1,13 @@ +diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c +index aee7a58..bcceecb 100644 +--- a/src/core/ngx_cycle.c ++++ b/src/core/ngx_cycle.c +@@ -1108,7 +1108,7 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user) + } + + fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND, +- NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS); ++ NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS | 0220); + + ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, + "reopen file \"%s\", old:%d new:%d", |