summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2011-03-07 04:04:25 +0000
committererdgeist <erdgeist@erdgeist.org>2011-03-07 04:04:25 +0000
commitb3c7e95edbe869118f9e5a9c2e9495712fa42ee0 (patch)
tree8149b876788948b6aa9b67e0af05b5865e5fcfdc /ezjail-admin
parent7e5a83e30848ca2e549f2afcc4c85d23526e44d3 (diff)
Fix argument passing to grep
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 9a6c363..418c89d 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -728,7 +728,7 @@ EOF
728 jail_grep=`echo $jail_pids | sed -E -e"s/ /)|(/g" -e"s/^/(/" -e"s/$/)/"` 728 jail_grep=`echo $jail_pids | sed -E -e"s/ /)|(/g" -e"s/^/(/" -e"s/$/)/"`
729 729
730 IFS=_ 730 IFS=_
731 ezjail_listener=`sockstat -46l | grep -E -e "*:[[:digit:]]" -e " ${jail_grep} "` 731 ezjail_listener=`sockstat -46l | grep -E -e "\*:[[:digit:]]" | grep -E -e " ${jail_grep} "`
732 [ $? -eq 0 ] && echo -e "Warning: Some services already seem to be listening on all IP, (including ${ezjail_ip})\n This may cause some confusion, here they are:\n${ezjail_listener}" 732 [ $? -eq 0 ] && echo -e "Warning: Some services already seem to be listening on all IP, (including ${ezjail_ip})\n This may cause some confusion, here they are:\n${ezjail_listener}"
733 IFS=, 733 IFS=,
734 done 734 done