diff options
Diffstat (limited to 'rpsl2acl/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); |