未验证 提交 98804d03 编写于 作者: L Lesmiscore

[utils] locked_file: Do not give executable bits for newly created files

Authored by: Lesmiscore
上级 4abea8ca
......@@ -2236,7 +2236,7 @@ def __init__(self, filename, mode, block=True, encoding=None):
os.O_RDONLY if not writable else os.O_RDWR if readable else os.O_WRONLY,
))
self.f = os.fdopen(os.open(filename, flags), mode, encoding=encoding)
self.f = os.fdopen(os.open(filename, flags, 0o666), mode, encoding=encoding)
def __enter__(self):
exclusive = 'r' not in self.mode
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册