From 10fe71e5f3ed5cff52166e78ca063baf8d1c1b83 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 10 Jan 2019 00:54:33 -0500 Subject: 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 Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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"} -- cgit v1.2.3-70-g09d2