From f7904ff01e7a7fa92908197ddb5a79773f5f8a5f Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 14 Jun 2010 08:54:16 -0300 Subject: Check net_monitor.log file permissions for readability (#59777) --- src/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1