From 0377eb1c57d28b634f1b21764aafc7656e1c3aaa Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 24 Apr 2006 10:59:04 +0000 Subject: An empty ezjail directory made rcorder fail. Fixed --- ezjail-admin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ezjail-admin') diff --git a/ezjail-admin b/ezjail-admin index 7132271..0b99d4b 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -303,8 +303,7 @@ delete) ;; ######################## ezjail-admin LIST ######################## list) - ezjail_list=${ezjail_list:-`rcorder ${ezjail_prefix}/etc/ezjail/*`} - ezjail_list=`basename -a ${ezjail_list}` + ezjail_list=`find -X ${ezjail_prefix}/etc/ezjail/ 2> /dev/null | xargs rcorder | xargs basename -a` printf "%-3s %-5s %-15s %-28s %s\\n" STA JID IP Hostname "Root Directory" echo "--- ----- --------------- ---------------------------- -----------------------------" -- cgit v1.2.3