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:
parent
68c10690ea
commit
caa0f2205a
1 changed files with 1 additions and 1 deletions
|
@ -658,7 +658,7 @@ extract_sources() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
local ret=0
|
local ret=0
|
||||||
msg2 "$cmd \"$file\""
|
msg2 '%s' "$cmd \"$file\""
|
||||||
$cmd "$file" || ret=$?
|
$cmd "$file" || ret=$?
|
||||||
if [ $ret -ne 0 ]; then
|
if [ $ret -ne 0 ]; then
|
||||||
error "$(gettext "Failed to extract %s")" "$file"
|
error "$(gettext "Failed to extract %s")" "$file"
|
||||||
|
|
Loading…
Add table
Reference in a new issue