X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/c4767c8ff74392d43e925adc7bbb1a50286ae13b..174285d97053e7f396ef47e366f41ce8c25e2565:/build-package.sh diff --git a/build-package.sh b/build-package.sh index c70e25b9..dad64a0b 100755 --- a/build-package.sh +++ b/build-package.sh @@ -865,10 +865,11 @@ termux_step_massage() { # Move over sbin to bin: for file in sbin/*; do if test -f "$file"; then mv "$file" bin/; fi; done - # Remove world permissions and add write permissions. + # Remove world permissions and add write permissions. # The -f flag is used to suppress warnings about dangling symlinks (such # as ones to /system/... which may not exist on the build machine): - find . -exec chmod -f u+w,o-rwx \{\} \; + find . -exec chmod -f u+w,g-rwx,o-rwx \{\} \; + if [ "$TERMUX_DEBUG" = "" ]; then # Strip binaries. file(1) may fail for certain unusual files, so disable pipefail. set +e +o pipefail