From 675d2c0376755d9258a4a3a7db01b5c91fd600de Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 29 Jun 2024 02:14:00 +0100 Subject: vendor.sh: remove unnecessary check this is over-engineering, because we do not allow just about any path to be provided; it's not provided as an argument in a command, for example. this is dictated by a configuration file, which we control. Signed-off-by: Leah Rowe --- include/vendor.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/vendor.sh b/include/vendor.sh index c60a3d77..c4241efa 100755 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -79,8 +79,6 @@ fetch() { dl_type="$1"; dl="$2"; dl_bkup="$3"; dlsum="$4" [ "$5" = "/dev/null" ] && return 0 - [ "${5# }" = "$5" ] || $err "fetch: space not allowed in _dest: '$5'" - [ "${5#/}" = "$5" ] || $err "fetch: absolute path not allowed: '$5'" _dest="${5##*../}"; _dl="$vendir/cache/$dlsum" download "$dl" "$dl_bkup" "$_dl" "$dlsum" -- cgit v1.2.1