From 5d510f1cf421160e8dee50cfc5be822964cc0d78 Mon Sep 17 00:00:00 2001 From: hagen Date: Mon, 11 Jan 2016 10:55:50 +0000 Subject: [PATCH] * DaemonLinux : set umask to 0027 instead 0000 --- DaemonLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DaemonLinux.cpp b/DaemonLinux.cpp index 440c5b96..7215eca7 100644 --- a/DaemonLinux.cpp +++ b/DaemonLinux.cpp @@ -58,7 +58,7 @@ namespace i2p } // child - umask(0); + umask(S_IWGRP | S_IRWXO); // 0027 int sid = setsid(); if (sid < 0) {