From 0e8f489f9664279e8d43548896c04f8db365da35 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 26 Feb 2007 18:53:04 +0100 Subject: [PATCH] /etc/zsh/zshrc: user root should have umask 022 of course --- debian/changelog | 7 +++++++ etc/zsh/zshrc | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index c167d09..e2cb478 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +grml-etc-core (0.2.25) unstable; urgency=low + + * /etc/zsh/zshrc: user root should have umask 022 of course. + User has 002. Thanks for reporting, Tobias Walkowiak! + + -- Michael Prokop Mon, 26 Feb 2007 18:44:45 +0100 + grml-etc-core (0.2.24) unstable; urgency=low * /etc/zsh/zshenv: source /etc/default/locale only if diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 5742118..c764991 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Feb 24 20:51:01 CET 2007 [mika] +# Latest change: Mon Feb 26 18:52:32 CET 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -329,8 +329,7 @@ fi # }}} # {{{ set some important options - # umask 022 - umask 002 + (( EUID != 0 )) && umask 002 || umask 022 # history: setopt append_history # append history list to the history file (important for multiple parallel zsh sessions!) -- 2.1.4