aboutsummaryrefslogtreecommitdiff
path: root/axfr2acl
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2019-08-24 22:35:19 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2019-08-24 22:35:19 +0300
commit0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a (patch)
treeab186003cbf9e3a5a12726d3c461718f069ed3ec /axfr2acl
parent9aa788734ab432ef374e88cf550cb8577bdfbfc2 (diff)
downloaddnstools-0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a.tar.gz
dnstools-0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a.tar.bz2
Fix the mess with logical conjunction and disjunction
Diffstat (limited to 'axfr2acl')
-rwxr-xr-xaxfr2acl/axfr2acl6
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 {

Return to:

Send suggestions and report system problems to the System administrator.