From 15c5a906f465e77f67e9f776de249c50e87d7a16 Mon Sep 17 00:00:00 2001 From: YOKOTA Hiroshi Date: Fri, 8 Aug 2025 20:40:41 +0900 Subject: [PATCH] Drop unused exec permission for log files Default mode is 0o777. Use mode 0o666 for text log files. --- src/calibre/srv/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/utils.py b/src/calibre/srv/utils.py index 83e1577692..18ea704393 100644 --- a/src/calibre/srv/utils.py +++ b/src/calibre/srv/utils.py @@ -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: