diff options
Diffstat (limited to 'axfr2acl/axfr2acl')
-rwxr-xr-x | axfr2acl/axfr2acl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/axfr2acl/axfr2acl b/axfr2acl/axfr2acl index 19e4f24..d9fe1a5 100755 --- a/axfr2acl/axfr2acl +++ b/axfr2acl/axfr2acl @@ -64,7 +64,7 @@ sub logit { } sub loginit { - if ($logfile and (!-e $logfile or -w $logfile)) { + if ($logfile && (!-e $logfile || -w $logfile)) { print STDERR "$script: logging to $logfile\n"; open(LOG, ">$logfile"); } else { @@ -272,7 +272,7 @@ foreach my $zone (@zones) { $serial{$zone} = $rr->serial; } -if ($update and keys(%oldserial)) { +if ($update && keys(%oldserial)) { debug('GENERAL', 1, "some zones removed: forcing update"); $need_update = 1; } @@ -325,7 +325,7 @@ if ($update) { delete $oldset{$net}; } } - unless ($update or keys(%oldset) > 0) { + unless ($update || keys(%oldset) > 0) { if ($need_update && !$dry_run) { debug('GENERAL', 1, "list unchanged; proceeding to save serials"); } else { |