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:
parent
2459b6db4f
commit
70dde0b360
5
configure
vendored
5
configure
vendored
@ -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`
|
||||||
|
Loading…
Reference in New Issue
Block a user