summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-07-01 02:31:59 -0500
committerAllan McRae <allan@archlinux.org>2009-07-12 01:02:25 +1000
commitcaa0f2205a62344c4df6e286e14a0d89cd1d10f2 (patch)
treeb16353aab07f544d6e442f0ea3b80cbc8b0c033f /scripts
parent68c10690eae369928b6cdc2d658588ad06e4b1a5 (diff)
downloadpacman-caa0f2205a62344c4df6e286e14a0d89cd1d10f2.tar.xz
makepkg: fix breakage with '%' in source filenames
Ensure we don't pass a bare filename to printf that might contain a lookalike '%' escape sequence. Fixes part of FS#15323. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-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 fd98a5e7..b80ff5ab 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -658,7 +658,7 @@ extract_sources() {
esac
local ret=0
- msg2 "$cmd \"$file\""
+ msg2 '%s' "$cmd \"$file\""
$cmd "$file" || ret=$?
if [ $ret -ne 0 ]; then
error "$(gettext "Failed to extract %s")" "$file"