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.
This commit is contained in:
Augustin Cavalier 2017-07-30 17:16:08 -04:00
parent 2459b6db4f
commit 70dde0b360

5
configure vendored
View File

@ -388,6 +388,11 @@ if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
usage; exit 0; usage; exit 0;
fi 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 # get cwd and the source directory
currentDir=`pwd` currentDir=`pwd`