From 70dde0b3608dd8c5b67e114ffdc3d4d8e98a3aa7 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 30 Jul 2017 17:16:08 -0400 Subject: [PATCH] configure: Ensure that umask is not too restrictive. There have been some odd bugs in the past possibly caused by this, so guard against it. Discussed with PulkoMandy. --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index 79c924e6ab..b9228b7a83 100755 --- a/configure +++ b/configure @@ -388,6 +388,11 @@ if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then usage; exit 0; fi +# ensure umask is not too restrictive +if [ $(umask) -gt 22 ]; then + echo "Your umask is too restrictive (should be: <= 0022; is actually:" $(umask)")" + exit 1 +fi # get cwd and the source directory currentDir=`pwd`