ignatenkobrain / rpms / nginx

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