From a684b35bcc0a3b812f6d785571c30e3e303dbba1 Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Wed, 16 Mar 2022 02:47:24 +0000 Subject: Disable globs to process TMPFS_BLACKLIST Disabling globs for the loop that checks currently building packages against TMPFS_BLACKLIST or wildcards in TMPFS_BLACKLIST will expand to files in the current directory, instead of being passed into the case statement as a pattern. --- src/share/poudriere/common.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index ab4af074..08bd0225 100755 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -5151,6 +5151,11 @@ build_pkg() { err 1 "Failed to rollback ${mnt} to prepkg" :> ${mnt}/.need_rollback + # Disabling globs for this loop or wildcards in + # TMPFS_BLACKLIST will expand to files in the + # current directory instead of being passed into + # the case statement as a pattern + set -o noglob for jpkg in ${TMPFS_BLACKLIST-}; do case "${pkgname%-*}" in ${jpkg}) @@ -5165,6 +5170,7 @@ build_pkg() { ;; esac done + set +o noglob rm -rfx ${mnt}/wrkdirs/* || : -- cgit v1.2.3