Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2022-03-16 05:47:24 +0300
committerRoss Williams <ross@ross-williams.net>2022-03-16 05:47:24 +0300
commita684b35bcc0a3b812f6d785571c30e3e303dbba1 (patch)
treed7c97f0484140bae18d1a8bae409d1589c484a75 /src
parent796b6ca45f8cbe26e60f7b3b73480b863fc3163a (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')
-rwxr-xr-xsrc/share/poudriere/common.sh6
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/* || :