summaryrefslogtreecommitdiff
path: root/scripts/firewall
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-02-08 10:18:57 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2009-02-08 10:18:57 -0800
commit7920e32bb00d89d4054a415c6c7a01fe0c0fba37 (patch)
tree0064a83a2c4f2bba2cdd94e56b2f4b3b8e5988d7 /scripts/firewall
parent9518476539e748e417f8b5515079a0f68a9d5849 (diff)
downloadvyatta-op-firewall-7920e32bb00d89d4054a415c6c7a01fe0c0fba37.tar.gz
vyatta-op-firewall-7920e32bb00d89d4054a415c6c7a01fe0c0fba37.zip
split tree and chain name accurately
Diffstat (limited to 'scripts/firewall')
-rwxr-xr-xscripts/firewall/vyatta-show-firewall.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/firewall/vyatta-show-firewall.pl b/scripts/firewall/vyatta-show-firewall.pl
index 81d97de..2e7c421 100755
--- a/scripts/firewall/vyatta-show-firewall.pl
+++ b/scripts/firewall/vyatta-show-firewall.pl
@@ -166,7 +166,7 @@ sub show_chain($$$) {
my $tree;
my $config = new Vyatta::Config;
my @chains;
-my @tree_chain_name = split('_', $tree_chain);
+my @tree_chain_name = split('_', $tree_chain, 2);
my $tree_name = $tree_chain_name[0];
my $chain_name = $tree_chain_name[1];