aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.com>2010-06-14 08:54:16 -0300
committerEugeni Dodonov <eugeni@mandriva.com>2010-06-14 08:54:16 -0300
commitf7904ff01e7a7fa92908197ddb5a79773f5f8a5f (patch)
tree237cf44495725846d0638f9c52f584942e5d5944
parentf7fb92afd422f729986b6fb6482aa2b3a25ee3ff (diff)
downloadnet_monitor-f7904ff01e7a7fa92908197ddb5a79773f5f8a5f.tar
net_monitor-f7904ff01e7a7fa92908197ddb5a79773f5f8a5f.tar.gz
net_monitor-f7904ff01e7a7fa92908197ddb5a79773f5f8a5f.tar.bz2
net_monitor-f7904ff01e7a7fa92908197ddb5a79773f5f8a5f.tar.xz
net_monitor-f7904ff01e7a7fa92908197ddb5a79773f5f8a5f.zip
Check net_monitor.log file permissions for readability (#59777)
-rw-r--r--src/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.py b/src/monitor.py
index 40df58a..45464f0 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -318,7 +318,7 @@ class Monitor:
def load_uptime_log(self):
"""Loads network uptime log, handled by /etc/sysconfig/network-scripts/if{up,down}.d/netprofile*"""
self.uptime_log = {}
- if not os.access(self.LOGFILE, os.F_OK):
+ if not os.access(self.LOGFILE, os.R_OK):
# no log file
return
with open(self.LOGFILE) as fd: