summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-01-10 06:54:33 +0100
committerAllan McRae <allan@archlinux.org>2019-01-10 08:00:05 +0100
commit10fe71e5f3ed5cff52166e78ca063baf8d1c1b83 (patch)
treeea0b3206c1f710cee9d7d54a5c00870334edd46a
parentaa284c97f1fdef7d43a523387533ad3981627504 (diff)
downloadpacman-10fe71e5f3ed5cff52166e78ca063baf8d1c1b83.tar.gz
pacman-10fe71e5f3ed5cff52166e78ca063baf8d1c1b83.tar.xz
makepkg: fix unguarded use of printf
paths can contain printf-unsafe chars, and printf -v is not somehow immune to this Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@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 00137e66..39ccd608 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1144,7 +1144,7 @@ fi
# canonicalize paths and provide defaults if anything is still undefined
for var in PKGDEST SRCDEST SRCPKGDEST LOGDEST BUILDDIR; do
- printf -v "$var" "$(canonicalize_path "${!var:-$startdir}")"
+ printf -v "$var" '%s' "$(canonicalize_path "${!var:-$startdir}")"
done
unset var
PACKAGER=${PACKAGER:-"Unknown Packager"}