aboutsummaryrefslogtreecommitdiff
path: root/rpsl2acl
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 /rpsl2acl
parent9aa788734ab432ef374e88cf550cb8577bdfbfc2 (diff)
downloaddnstools-0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a.tar.gz
dnstools-0b8f6e1e6251758ccdcc9bcf102a67a9e39dd54a.tar.bz2
Fix the mess with logical conjunction and disjunction
Diffstat (limited to 'rpsl2acl')
-rwxr-xr-xrpsl2acl/rpsl2acl4
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);

Return to:

Send suggestions and report system problems to the System administrator.