Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 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 | 3e96fc952c45 |
| children | b9194bec5504 |
| files | sbin/ftjail |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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
