# HG changeset patch # User Franz Glasner # Date 1727527885 -7200 # Node ID 5ba31e3748ca157f841a8026cd518f86fddda6ed # Parent 7bbb397168b7abaa1ccb7a0c2d31bb67764523c6 ftjail: quote all option expansions diff -r 7bbb397168b7 -r 5ba31e3748ca sbin/ftjail --- a/sbin/ftjail Sat Sep 28 14:09:38 2024 +0200 +++ b/sbin/ftjail Sat Sep 28 14:51:25 2024 +0200 @@ -79,7 +79,7 @@ _opt_dry_run="" while getopts "nu" _opt ; do - case ${_opt} in + case "${_opt}" in n|u) _opt_dry_run="yes" ;; @@ -138,7 +138,7 @@ _opt_symlink="" while getopts "LPnu" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="yes" ;; @@ -243,7 +243,7 @@ _opt_symlink="" while getopts "LP" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="-L" ;; @@ -291,7 +291,7 @@ _opt_preserve_boot="" while getopts "LPb" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="yes" ;; @@ -483,7 +483,7 @@ _opt_symlink="" while getopts "LPnu" _opt ; do - case ${_opt} in + case "${_opt}" in L) _opt_symlink="yes" ;; @@ -669,7 +669,7 @@ _opt_nodata="" while getopts "ADLM:Pu" _opt ; do - case ${_opt} in + case "${_opt}" in A) _opt_canmount="-o canmount=noauto" ;; @@ -880,7 +880,7 @@ _opt_keep="no" _opt_old_origin="" while getopts "ko:" _opt ; do - case ${_opt} in + case "${_opt}" in k) _opt_keep="yes" ;; @@ -1097,7 +1097,7 @@ # Global option handling # while getopts "Vh" _opt ; do - case ${_opt} in + case "${_opt}" in V) printf 'ftjail %s\n' '@@SIMPLEVERSIONSTR@@' exit 0