mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
configure: Ensure the git checkout was not done with a restrictive umask.
It seems that the old buildbots had their (ancient) checkouts done with a restrictive umask, and this meant that some files in buildbot-generated builds were not readable by "world" as they should have been. Now instead of just verifying the umask itself is not too restrictive, we also validate the "SetupEnvironment" script in the tree has mode 644. Fixes #14085.
This commit is contained in:
parent
7852aa0525
commit
02f3646adc
17
configure
vendored
17
configure
vendored
@ -535,10 +535,23 @@ for var in `env`; do
|
||||
done
|
||||
|
||||
# ensure umask is not too restrictive
|
||||
if [ $(umask) -gt 22 ]; then
|
||||
echo "Your umask is too restrictive (should be: <= 0022; is actually:" $(umask)")"
|
||||
if [ `umask` -gt 22 ]; then
|
||||
echo Your umask is too restrictive "(should be <= 0022;" is actually `umask`")"
|
||||
echo
|
||||
echo Additionally, if the source tree was cloned with a too-restrictive umask,
|
||||
echo you will need to run \"git checkout\" again to fix this.
|
||||
exit 1
|
||||
fi
|
||||
# ensure git checkout was not done with a restrictive umask
|
||||
if [ `stat -c '%a' $sourceDir/data/system/boot/SetupEnvironment` -ne 644 ]; then
|
||||
echo "The source tree was cloned with a umask > 0022. It seems you"
|
||||
echo have already corrected your umask, but not re-checked-out the
|
||||
echo source tree. Try running:
|
||||
echo " git checkout --force"
|
||||
echo to fix this problem.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# internal default parameter values
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user