hrev51324 adds 1 changeset to branch 'master'
old head: 2459b6db4fa45d2643d8f795816bd1ef0ab98955
new head: 70dde0b3608dd8c5b67e114ffdc3d4d8e98a3aa7
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=70dde0b3608d+%5E2459b6db4fa4
----------------------------------------------------------------------------
70dde0b3608d: 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.
[ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev51324
Commit: 70dde0b3608dd8c5b67e114ffdc3d4d8e98a3aa7
URL: http://cgit.haiku-os.org/haiku/commit/?id=70dde0b3608d
Author: Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date: Sun Jul 30 21:16:08 2017 UTC
----------------------------------------------------------------------------
1 file changed, 5 insertions(+)
configure | 5 +++++
----------------------------------------------------------------------------
diff --git a/configure b/configure
index 79c924e..b9228b7 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`