mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Drop unused exec permission for log files
Default mode is 0o777. Use mode 0o666 for text log files.
This commit is contained in:
parent
04026132a7
commit
15c5a906f4
@ -285,7 +285,7 @@ class RotatingStream:
|
||||
self.stream = share_open(self.filename, 'a', newline='')
|
||||
else:
|
||||
# see https://bugs.python.org/issue27805
|
||||
self.stream = open(os.open(self.filename, os.O_WRONLY|os.O_APPEND|os.O_CREAT|os.O_CLOEXEC), 'w')
|
||||
self.stream = open(os.open(self.filename, os.O_WRONLY|os.O_APPEND|os.O_CREAT|os.O_CLOEXEC, mode=0o666), 'w')
|
||||
try:
|
||||
self.stream.tell()
|
||||
except OSError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user