From 1aa7a3ddbd63f8cf5698cd769bd4d2f0053de786 Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Fri, 16 Oct 2015 09:28:10 +0000 Subject: [PATCH] Issue #114: Add umask on build image script --- lib/core.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core.sh b/lib/core.sh index 0b299c4..dc71700 100644 --- a/lib/core.sh +++ b/lib/core.sh @@ -323,7 +323,9 @@ function _install_from_aur(){ } function build_image_env(){ -# The function must runs on ArchLinux with non-root privileges. + umask 022 + + # The function must runs on ArchLinux with non-root privileges. (( EUID == 0 )) && \ die "You cannot build with root privileges."