summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2007-02-22 16:21:32 +0000
committererdgeist <erdgeist@erdgeist.org>2007-02-22 16:21:32 +0000
commita6e66c0450f0ff3c6b66bce24c422f7f45b55704 (patch)
tree9e0006eb1c68126a9769431599e5417e30906fde /ezjail-admin
parent2cb3c00485f23705ef02c6b9aba61ec83edb7e02 (diff)
the -a operator evaluates from right to left
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index cc9cb12..aa7b16d 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -278,7 +278,7 @@ create)
278 # if a directory at the specified jail root already exists, refuse to 278 # if a directory at the specified jail root already exists, refuse to
279 # install. Empty root dirs are considered okay, sometimes they are 279 # install. Empty root dirs are considered okay, sometimes they are
280 # mount points to be filled by ezjail. 280 # mount points to be filled by ezjail.
281 [ -d ${ezjail_rootdir} -a -z "`ls -I ${ezjail_rootdir}`" ] && ezjail_rootdirempty="YES" 281 [ -d ${ezjail_rootdir} ] && [ -z "`ls -I ${ezjail_rootdir}`" ] && ezjail_rootdirempty="YES"
282 [ -e ${ezjail_rootdir} -a -z "${ezjail_rootdirempty}" -a -z "${ezjail_exists}" ] && exerr "Error: the specified jail root ${ezjail_rootdir} already exists." 282 [ -e ${ezjail_rootdir} -a -z "${ezjail_rootdirempty}" -a -z "${ezjail_exists}" ] && exerr "Error: the specified jail root ${ezjail_rootdir} already exists."
283 283
284 # if jail root specified on command line does not lie within our jail 284 # if jail root specified on command line does not lie within our jail