summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c
index fe9349e8..025efe70 100644
--- a/src/nxt_process.c
+++ b/src/nxt_process.c
@@ -1156,10 +1156,10 @@ nxt_process_daemon(nxt_task_t *task)
}
/*
- * Reset file mode creation mask: any access
- * rights can be set on file creation.
+ * Set a sefe umask to give at most 755/644 permissions on
+ * directories/files.
*/
- umask(0);
+ umask(0022);
/* Redirect STDIN and STDOUT to the "/dev/null". */