diff 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
line wrap: on
line diff
--- a/sbin/ftjail	Thu May 09 09:01:32 2024 +0200
+++ b/sbin/ftjail	Thu May 09 09:02:34 2024 +0200
@@ -945,7 +945,7 @@
     _jailname=$(_get_jail_from_path "${_directory}")
     _res=$?
     set -e
-    if [ ${_res} -ne 2 ] ; then
+    if [ ${_res} -ne 3 ] ; then
         if [ ${_res} -ne 0 ] ; then
             return ${_res}
         else