comparison sbin/ftjail @ 412:38040c9704b8

Also check whether a given directory name ends with a trailing slash. This is not supported.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 14 Mar 2023 21:54:02 +0100
parents 155c5f6eebc7
children 30956bb06421
comparison
equal deleted inserted replaced
411:155c5f6eebc7 412:38040c9704b8
170 170
171 local _fstab 171 local _fstab
172 172
173 _directory=${1-} 173 _directory=${1-}
174 case "${_directory}" in 174 case "${_directory}" in
175 */)
176 echo "ERROR: a trailing slash in directory name given" 1>&2;
177 exit 1;
178 ;;
175 /*) 179 /*)
176 : 180 :
177 ;; 181 ;;
178 '') 182 '')
179 echo "ERROR: no directory given" 1>&2; 183 echo "ERROR: no directory given" 1>&2;