diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-07-15 16:11:22 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-07-15 16:11:22 +0000 |
commit | 5b5921370d821cef89194a628b1942af382aedfb (patch) | |
tree | 093f075c79b5b61c94b4ec820ceb3e37d49049aa /ezjail.sh | |
parent | 372d2696dfb6296b08f8d7b55d39fff82e8ab63e (diff) |
Fixed some expansion/quotation issues with tr's parameters ([:alnum:] etc.) Thanks to Simon L. Nielsen.
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ do_cmd() | |||
41 | # If a jail list is given on command line, process it | 41 | # If a jail list is given on command line, process it |
42 | # If not, fetch it from our config directory | 42 | # If not, fetch it from our config directory |
43 | if [ -n "$*" ]; then | 43 | if [ -n "$*" ]; then |
44 | ezjail_list=`echo -n $* | tr -c "[:alnum:] " _` | 44 | ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'` |
45 | ezjail_fromrc="NO" | 45 | ezjail_fromrc="NO" |
46 | else | 46 | else |
47 | ezjail_list=`find -X ${ezjail_prefix}/etc/ezjail/ 2> /dev/null | xargs rcorder | xargs basename -a` | 47 | ezjail_list=`find -X ${ezjail_prefix}/etc/ezjail/ 2> /dev/null | xargs rcorder | xargs basename -a` |