From 5298ee2a355f01f710505a8e73a6b5bd0a018f4c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 14 Nov 2017 00:48:55 +0000 Subject: [PATCH] init: set a sane default umask --- Applications/util/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/util/init.c b/Applications/util/init.c index 2f564708..b27a6073 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -885,6 +885,8 @@ static void spawn_login(struct passwd *pwd, const char *tty, const char *id, con envset("HOME", pwd->pw_dir); envset("SHELL", pwd->pw_shell); + umask(022); + /* home directory */ if (chdir(pwd->pw_dir)) -- 2.34.1