diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-10-30 13:19:31 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-10-30 13:19:31 -0700 |
commit | 2ad550ffeaf214e167677fc9be57f4c3b1a61be0 (patch) | |
tree | 5ad360c8d6675e47e149183b2fb6087039fec4a7 /scripts | |
parent | 2dac8cbc810c4d3b743b684ef596bc713af4204b (diff) | |
download | vyatta-cfg-firewall-2ad550ffeaf214e167677fc9be57f4c3b1a61be0.tar.gz vyatta-cfg-firewall-2ad550ffeaf214e167677fc9be57f4c3b1a61be0.zip |
Fix 5247: Firewall groups CLI becomes out of sync with ipset when sets and deletes are contained within a single commit
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/firewall/vyatta-ipset.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/firewall/vyatta-ipset.pl b/scripts/firewall/vyatta-ipset.pl index 8614581..4d4cded 100755 --- a/scripts/firewall/vyatta-ipset.pl +++ b/scripts/firewall/vyatta-ipset.pl @@ -13,7 +13,7 @@ # General Public License for more details. # # This code was originally developed by Vyatta, Inc. -# Portions created by Vyatta are Copyright (C) 2009 Vyatta, Inc. +# Portions created by Vyatta are Copyright (C) 2009-2010 Vyatta, Inc. # All Rights Reserved. # # Author: Stig Thormodsrud @@ -158,7 +158,7 @@ sub ipset_copy_set { # copy members to new group my $tmpfile = "/tmp/set.$$"; system("ipset -S $set_name > $tmpfile"); - system("sed -i s/$set_name/$set_copy/g $tmpfile"); + system("sed -i \'s/ $set_name / $set_copy /g\' $tmpfile"); system("ipset -R < $tmpfile"); unlink $tmpfile; my $copy = new Vyatta::IpTables::IpSet($set_copy, $set_type); |