summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2012-04-06 12:13:39 +0000
committererdgeist <erdgeist@erdgeist.org>2012-04-06 12:13:39 +0000
commitd8d44a7159b930af39e3efc26acb2ac5736f34a7 (patch)
tree44684c364e4e7bf0205bc26765359f3fd3425048
parent10172f9475f6ed069bdf6646bbd7f753e5eaa168 (diff)
Include the .* in the quoted expression to prevent unwanted expansion
-rwxr-xr-xezjail-admin4
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