diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-08-24 22:35:19 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-08-24 22:35:19 +0300 |
commit | 0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a (patch) | |
tree | ab186003cbf9e3a5a12726d3c461718f069ed3ec /rpsl2acl | |
parent | 9aa788734ab432ef374e88cf550cb8577bdfbfc2 (diff) | |
download | dnstools-0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a.tar.gz dnstools-0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a.tar.bz2 |
Fix the mess with logical conjunction and disjunction
Diffstat (limited to 'rpsl2acl')
-rwxr-xr-x | rpsl2acl/rpsl2acl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpsl2acl/rpsl2acl b/rpsl2acl/rpsl2acl index daeec78..b6180b4 100755 --- a/rpsl2acl/rpsl2acl +++ b/rpsl2acl/rpsl2acl @@ -51,7 +51,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 { @@ -295,7 +295,7 @@ if ($update) { delete $oldset{$net}; } } - unless ($update or keys(%oldset) > 0) { + unless ($update || keys(%oldset) > 0) { debug('GENERAL', 1, "shutdown: list unchanged"); logdone(); exit(1); |