makepkg: null terminate filenames to strip

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
Dave Reisner 2012-04-24 23:09:31 -04:00 committed by Dan McGee
parent 6d2fb6fd81
commit 8a9c666a8c
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ tidy_install() {
[[ -z ${STRIP_SHARED+x} ]] && STRIP_SHARED="-S"
[[ -z ${STRIP_STATIC+x} ]] && STRIP_STATIC="-S"
local binary
find . -type f -perm -u+w 2>/dev/null | while read binary ; do
find . -type f -perm -u+w -print0 2>/dev/null | while read -d '' binary ; do
case "$(file -bi "$binary")" in
*application/x-sharedlib*) # Libraries (.so)
strip $STRIP_SHARED "$binary";;