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>
This commit is contained in:
Dan McGee 2009-07-01 02:31:59 -05:00 committed by Allan McRae
parent 68c10690ea
commit caa0f2205a
1 changed files with 1 additions and 1 deletions

View File

@ -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"