aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-07-10 15:28:34 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2015-07-10 15:28:34 +0300
commit5bbf06a701121f6c66f569e6ef99fddf017e95cd (patch)
tree70c4be4cf8740ed40964655dfcf69d5082a3c3e8
parent9517274eff7854909fe1aada3f8aadc580d0ce2e (diff)
downloaddnstools-5bbf06a701121f6c66f569e6ef99fddf017e95cd.tar.gz
dnstools-5bbf06a701121f6c66f569e6ef99fddf017e95cd.tar.bz2
Minor changes
* axfr2acl/axfr2acl
-rwxr-xr-xaxfr2acl/axfr2acl6
1 files changed, 2 insertions, 4 deletions
diff --git a/axfr2acl/axfr2acl b/axfr2acl/axfr2acl
index 1accab7..19e4f24 100755
--- a/axfr2acl/axfr2acl
+++ b/axfr2acl/axfr2acl
@@ -156,5 +156,5 @@ sub read_acl($) {
156 $line++; 156 $line++;
157 } 157 }
158 sort @oldlist; 158 @oldlist = sort @oldlist;
159 close(FILE); 159 close(FILE);
160} 160}
@@ -315,10 +315,8 @@ if (!$need_update) {
315} 315}
316 316
317sort @netlist;
318
319if ($update) { 317if ($update) {
320 my %oldset = map { $_ => $_ } @oldlist; 318 my %oldset = map { $_ => $_ } @oldlist;
321 $update = 0; 319 $update = 0;
322 foreach my $net (@netlist) { 320 foreach my $net (sort @netlist) {
323 if (!$oldset{$net}) { 321 if (!$oldset{$net}) {
324 $update = 1; 322 $update = 1;

Return to:

Send suggestions and report system problems to the System administrator.