From 256f4d51143aa381307ccecc553cee9cf7faf98c Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Tue, 23 Sep 2025 22:01:48 +0200 Subject: [PATCH] Don't quote ${SH} (#1240) When ${SH} is quoted one cannot replace the shell with another shell with arguments, e.g., for debugging purposes: SH="sh -x" bastille ... Don't quote, expect the shell path to never contain a space and be from /etc/shells. This fixes #1240 --- usr/local/bin/bastille | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/bin/bastille b/usr/local/bin/bastille index 0536f4dc..7e2c81a6 100755 --- a/usr/local/bin/bastille +++ b/usr/local/bin/bastille @@ -240,7 +240,7 @@ if [ -f "${SCRIPTPATH}" ]; then : "${SH:=sh}" - exec "${SH}" "${SCRIPTPATH}" "$@" + exec ${SH} "${SCRIPTPATH}" "$@" else error_exit "${SCRIPTPATH} not found."