Blame SOURCES/nginx-1.14.0-logs-perm.patch
|
|
2ace6e |
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
|
|
|
2ace6e |
index aee7a58..bcceecb 100644
|
|
|
2ace6e |
--- a/src/core/ngx_cycle.c
|
|
|
2ace6e |
+++ b/src/core/ngx_cycle.c
|
|
|
2ace6e |
@@ -1108,7 +1108,7 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user)
|
|
|
2ace6e |
}
|
|
|
2ace6e |
|
|
|
2ace6e |
fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND,
|
|
|
2ace6e |
- NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS);
|
|
|
2ace6e |
+ NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS | 0220);
|
|
|
2ace6e |
|
|
|
2ace6e |
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
|
|
|
2ace6e |
"reopen file \"%s\", old:%d new:%d",
|