comparison sbin/ftjail @ 450:ccd6c36da449

Change return values from _get_jail_from_path(): swap values for "dying" and "not found"
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 09 May 2024 09:02:34 +0200
parents 6127213b2c8f
children 5194d87e0b4b
comparison
equal deleted inserted replaced
449:6127213b2c8f 450:ccd6c36da449
943 943
944 set +e 944 set +e
945 _jailname=$(_get_jail_from_path "${_directory}") 945 _jailname=$(_get_jail_from_path "${_directory}")
946 _res=$? 946 _res=$?
947 set -e 947 set -e
948 if [ ${_res} -ne 2 ] ; then 948 if [ ${_res} -ne 3 ] ; then
949 if [ ${_res} -ne 0 ] ; then 949 if [ ${_res} -ne 0 ] ; then
950 return ${_res} 950 return ${_res}
951 else 951 else
952 echo "ERROR: Please stop the \`${_jailname}' jail" >&2 952 echo "ERROR: Please stop the \`${_jailname}' jail" >&2
953 return 1 953 return 1