Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/ftjail @ 689:425b1ae264a9
ftjail: FIX: call jexec command params after "--"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 01 Oct 2024 15:04:47 +0200 |
| parents | 5156eaa27ac9 |
| children | 8f1583faf9ea |
line wrap: on
line diff
--- a/sbin/ftjail Tue Oct 01 15:03:28 2024 +0200 +++ b/sbin/ftjail Tue Oct 01 15:04:47 2024 +0200 @@ -1110,7 +1110,7 @@ if [ -n "${_directory}" ]; then _etcupdate_status='' if [ -n "${_running_jailname}" ]; then - _etcupdate_status="$(/usr/sbin/jexec -l -U root "${_running_jailname}" /usr/sbin/etcupdate status 2>&1 || true)" + _etcupdate_status="$(/usr/sbin/jexec -l -U root -- "${_running_jailname}" /usr/sbin/etcupdate status 2>&1 || true)" elif [ -d "${_directory}" ]; then _etcupdate_status="$(LC_ALL=C.UTF-8 /usr/sbin/etcupdate status -D "${_directory}" 2>&1 || true)" fi
