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 /lib | |
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 'lib')
-rwxr-xr-x | lib/Vyatta/IpTables/IpSet.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/IpTables/IpSet.pm b/lib/Vyatta/IpTables/IpSet.pm index 20463f1..894bb84 100755 --- a/lib/Vyatta/IpTables/IpSet.pm +++ b/lib/Vyatta/IpTables/IpSet.pm @@ -95,7 +95,7 @@ sub exists { return 1 if defined $self->{_exists}; return 0 if ! defined $self->{_name}; - my $cmd = "ipset -n -L $self->{_name} > /dev/null &>2"; + my $cmd = "ipset -n -L $self->{_name} > /dev/null 2>&1"; my $rc = $self->run_cmd($cmd); if ($rc eq 0) { $self->{_exists} = 1; |