diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-04-24 10:59:04 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-04-24 10:59:04 +0000 |
commit | 0377eb1c57d28b634f1b21764aafc7656e1c3aaa (patch) | |
tree | c8e9507fba5ec09f24d6d50c9ee4b42bcfdfaf5f /ezjail-admin | |
parent | 6ee8b2a5b691673cf87f600c8ae66cfaaadfba64 (diff) |
An empty ezjail directory made rcorder fail. Fixed
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 7132271..0b99d4b 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -303,8 +303,7 @@ delete) | |||
303 | ;; | 303 | ;; |
304 | ######################## ezjail-admin LIST ######################## | 304 | ######################## ezjail-admin LIST ######################## |
305 | list) | 305 | list) |
306 | ezjail_list=${ezjail_list:-`rcorder ${ezjail_prefix}/etc/ezjail/*`} | 306 | ezjail_list=`find -X ${ezjail_prefix}/etc/ezjail/ 2> /dev/null | xargs rcorder | xargs basename -a` |
307 | ezjail_list=`basename -a ${ezjail_list}` | ||
308 | 307 | ||
309 | printf "%-3s %-5s %-15s %-28s %s\\n" STA JID IP Hostname "Root Directory" | 308 | printf "%-3s %-5s %-15s %-28s %s\\n" STA JID IP Hostname "Root Directory" |
310 | echo "--- ----- --------------- ---------------------------- -----------------------------" | 309 | echo "--- ----- --------------- ---------------------------- -----------------------------" |