From 5280daec7c833ce0bda27a6cffcee37e84c44555 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sat, 22 Mar 2025 09:18:10 -0600 Subject: [PATCH] limits: Fix redirect of errors --- usr/local/share/bastille/limits.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/limits.sh b/usr/local/share/bastille/limits.sh index c9826c72..28f1aa68 100644 --- a/usr/local/share/bastille/limits.sh +++ b/usr/local/share/bastille/limits.sh @@ -109,7 +109,7 @@ for _jail in ${JAILS}; do # Remove limits if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then while read _limits; do - rctl -r "${_limits}" 2 > /dev/null + rctl -r "${_limits}" 2>/dev/null done < "${bastille_jailsdir}/${_jail}/rctl.conf" info "[${TARGET}]: RCTL limits cleared." fi @@ -118,7 +118,7 @@ for _jail in ${JAILS}; do # Remove limits and delete rctl.conf if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then while read _limits; do - rctl -r "${_limits}" 2 > /dev/null + rctl -r "${_limits}" 2>/dev/null done < "${bastille_jailsdir}/${_jail}/rctl.conf" info "[${TARGET}]: RCTL limits cleared." fi