summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-24 23:09:31 -0400
committerDan McGee <dan@archlinux.org>2012-04-29 20:26:11 -0500
commit8a9c666a8c0f46739724e2032cedb451121c4594 (patch)
treeb088783de4239b476efcdd3ffc134f22a77d6003
parent6d2fb6fd815c7f427028b20faa16e531d5cc2aa4 (diff)
downloadpacman-8a9c666a8c0f46739724e2032cedb451121c4594.tar.xz
makepkg: null terminate filenames to strip
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 10a0654d..4179dd5b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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";;