From b8b992b2aba6d6e9eed0f0b2e025c08511139290 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 20 Dec 2012 21:42:24 +0100 Subject: [PATCH] zsh/rc: Don't change umask as root. --- zsh/rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zsh/rc b/zsh/rc index a789428..bb11dd7 100644 --- a/zsh/rc +++ b/zsh/rc @@ -45,8 +45,10 @@ resolve_fg_to_resumed_job_name() { # MISCELLANEOUS SETTINGS -# Be paranoid, new files are readable/writable by me only. -umask 077 +# Be paranoid, new files are readable/writable by me only, but not as root. +if [[ $UID -ne 0 ]]; then + umask 077 +fi # Disable beeps. setopt nobeep -- 2.44.1