diff options
Diffstat (limited to 'src/shutdown.c')
-rw-r--r-- | src/shutdown.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shutdown.c b/src/shutdown.c index 52bad21971..1c6dc6597b 100644 --- a/src/shutdown.c +++ b/src/shutdown.c @@ -295,6 +295,8 @@ int main(int argc, char *argv[]) { log_set_target(LOG_TARGET_CONSOLE); /* syslog will die if not gone yet */ log_open(); + umask(0022); + if (getpid() != 1) { log_error("Not executed by init (pid 1)."); r = -EPERM; |