From 4c12626c8e3491570b395d68380543e10c98ad33 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 1 Aug 2011 20:52:18 +0200 Subject: umask: change default umask to 0022 just to be sure, and set it explicitly in all binaries, in order to make sure it is set when started from the terminal --- src/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/execute.c') diff --git a/src/execute.c b/src/execute.c index 7b2567976d..f07d018a37 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1402,7 +1402,7 @@ fail_parent: void exec_context_init(ExecContext *c) { assert(c); - c->umask = 0002; + c->umask = 0022; c->ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, 0); c->cpu_sched_policy = SCHED_OTHER; c->syslog_priority = LOG_DAEMON|LOG_INFO; -- cgit v1.2.3-54-g00ecf