diff options
author | Ross Williams <ross@ross-williams.net> | 2022-03-16 05:47:24 +0300 |
---|---|---|
committer | Ross Williams <ross@ross-williams.net> | 2022-03-16 05:47:24 +0300 |
commit | a684b35bcc0a3b812f6d785571c30e3e303dbba1 (patch) | |
tree | d7c97f0484140bae18d1a8bae409d1589c484a75 /src/share | |
parent | 796b6ca45f8cbe26e60f7b3b73480b863fc3163a (diff) |
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.
Diffstat (limited to 'src/share')
-rwxr-xr-x | src/share/poudriere/common.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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/* || : |