From a1c50a08c9307cd21947269bd8382add1acf2515 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 20 Dec 2014 11:58:09 +0100 Subject: pacman-db-upgrade: set umask 022 This prevents the database from becoming inaccessible for non-root users when the script was executed with a umask of 027. Signed-off-by: Peter Wu Signed-off-by: Allan McRae --- scripts/pacman-db-upgrade.sh.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/pacman-db-upgrade.sh.in') diff --git a/scripts/pacman-db-upgrade.sh.in b/scripts/pacman-db-upgrade.sh.in index 7b360c3c..7d01bce9 100644 --- a/scripts/pacman-db-upgrade.sh.in +++ b/scripts/pacman-db-upgrade.sh.in @@ -19,6 +19,9 @@ # along with this program. If not, see . # +# Avoid creating world-unreadable files +umask 022 + # gettext initialization export TEXTDOMAIN='pacman-scripts' export TEXTDOMAINDIR='@localedir@' -- cgit v1.2.3-24-g4f1b