From e35c59330dace6f5a17634e77e46fd3790cb73af Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Sun, 17 Jul 2022 18:43:13 -0600 Subject: [PATCH] bugfix for cmd when using ALL target --- usr/local/share/bastille/cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/cmd.sh b/usr/local/share/bastille/cmd.sh index 37ced81b..6bc69610 100644 --- a/usr/local/share/bastille/cmd.sh +++ b/usr/local/share/bastille/cmd.sh @@ -53,7 +53,7 @@ for _jail in ${JAILS}; do COUNT=$(($COUNT+1)) info "[${_jail}]:" - if grep -qw "linsysfs" "${bastille_jailsdir}/${TARGET}/fstab"; then + if grep -qw "linsysfs" "${bastille_jailsdir}/${_jail}/fstab"; then # Allow executing commands on Linux jails. jexec -l -u root "${_jail}" "$@" else