ignatenkobrain / rpms / nginx

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