diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-13 18:53:34 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-13 18:53:34 (EDT) |
commit | 7d1a160e51e3705fc901c7b5150913d726b58f0b (patch) | |
tree | 9a6b6990b6ea58754d35e1d4990992314f7e3c9a /lib | |
parent | 575858a3709d03b6348add5721cd02e320b424bf (diff) |
_ob_get_system_path(): Protect against DATADIR with "%"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/metadata/proteanos.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh index 2519433..d61d976 100644 --- a/lib/metadata/proteanos.sh +++ b/lib/metadata/proteanos.sh @@ -136,15 +136,15 @@ _ob_get_system_path() 'buildflags') # arch [ ${#} -eq 1 ] || _ob_abort - printf "${DATADIR}/opkbuild/buildflags/%s" "${1}" + printf '%s/opkbuild/buildflags/%s' "${DATADIR}" "${1}" ;; 'platconf') # source version plat [ ${#} -eq 3 ] || _ob_abort ob_parse_version -u 'pkgver' "${2}" - printf "${DATADIR}/platconf/%s/%s\n" "${3}" "${1}" - printf "${DATADIR}/platconf/%s/%s_%s\n" "${3}" "${1}" \ - "${pkgver}" + printf '%s/platconf/%s/%s\n' "${DATADIR}" "${3}" "${1}" + printf '%s/platconf/%s/%s_%s\n' "${DATADIR}" \ + "${3}" "${1}" "${pkgver}" ;; esac |