This commit is contained in:
Kovid Goyal 2016-01-07 15:17:35 +05:30
parent e0871ec10d
commit 9c582259be

View File

@ -495,7 +495,7 @@ def singleinstance():
def update_stats():
log = olog = 'stats.log'
if not os.path.exists(log):
if os.geteuid() != 0 or not os.path.exists(log):
return {}
stats = {}
if IS_PRODUCTION: