From b8f5eff75187cf1b9774a8e65fe705efbb436c65 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 29 Oct 2015 07:34:08 -0500 Subject: Tweak permissions of toybox binary. --- scripts/make.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts/make.sh') diff --git a/scripts/make.sh b/scripts/make.sh index 61f3947c..a724d5f7 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -276,9 +276,12 @@ if [ ! -z "$NOSTRIP" ] || ! do_loudly ${CROSS_COMPILE}strip toybox_unstripped -o then echo "strip failed, using unstripped" && cp toybox_unstripped toybox || exit 1 -else - # gcc 4.4's strip command is buggy, and doesn't set the executable bit on - # its output the way SUSv4 suggests it do so. - do_loudly chmod +x toybox || exit 1 fi + +# gcc 4.4's strip command is buggy, and doesn't set the executable bit on +# its output the way SUSv4 suggests it do so. While we're at it, make sure +# we don't have the "w" bit set so things like bzip2's "cp -f" install don't +# overwrite our binary through the symlink. +do_loudly chmod 555 toybox || exit 1 + echo -- cgit v1.2.3