diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2012-04-06 12:13:39 +0000 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2012-04-06 12:13:39 +0000 |
| commit | d8d44a7159b930af39e3efc26acb2ac5736f34a7 (patch) | |
| tree | 44684c364e4e7bf0205bc26765359f3fd3425048 /ezjail-admin | |
| parent | 10172f9475f6ed069bdf6646bbd7f753e5eaa168 (diff) | |
Include the .* in the quoted expression to prevent unwanted expansion
Diffstat (limited to 'ezjail-admin')
| -rwxr-xr-x | ezjail-admin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin index 7be039b..c10bb55 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
| @@ -727,8 +727,8 @@ EOF | |||
| 727 | # by prepending -j to each jid | 727 | # by prepending -j to each jid |
| 728 | IFS=${TIFS} | 728 | IFS=${TIFS} |
| 729 | jail_ids=`( echo none= | 729 | jail_ids=`( echo none= |
| 730 | jls -n | sed -E -n s/'.*jid=([0-9]+).*ip4\.addr=([0-9.,]+)'.*/'\1=\2'/p | grep -Ee "${ezjail_ip}(,|$)" | 730 | jls -n | sed -E -n s/'.*jid=([0-9]+).*ip4\.addr=([0-9.,]+).*'/'\1=\2'/p | grep -Ee "${ezjail_ip}(,|$)" |
| 731 | jls -n | sed -E -n s/'.*jid=([0-9]+).*ip6\.addr=([0-9a-f:,]+)'.*/'\1=\2'/p | grep -Ee "${ezjail_ip}(,|$)" | 731 | jls -n | sed -E -n s/'.*jid=([0-9]+).*ip6\.addr=([0-9a-f:,]+).*'/'\1=\2'/p | grep -Ee "${ezjail_ip}(,|$)" |
| 732 | ) | cut -d= -f1 | sed s/^/-j/` | 732 | ) | cut -d= -f1 | sed s/^/-j/` |
| 733 | 733 | ||
| 734 | # Fetch all corresponding process ids for all matching jail | 734 | # Fetch all corresponding process ids for all matching jail |
