X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/faa5037a0c23f0b7e36477a249536a9aa6a1b42a..40534bae4bea925570f533df937f6ab49798c5be:/build-package.sh diff --git a/build-package.sh b/build-package.sh index 5a01fe80..eb9a59ac 100755 --- a/build-package.sh +++ b/build-package.sh @@ -555,8 +555,10 @@ 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: - find . -exec chmod u+w,o-rwx \{\} \; + # 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 \{\} \; if [ "$TERMUX_DEBUG" = "" ]; then # Strip binaries. file(1) may fail for certain unusual files, so disable pipefail. set +e +o pipefail