mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-18 10:26:48 +01:00
[utils] locked_file: Do not give executable bits for newly created files
Authored by: Lesmiscore
This commit is contained in:
parent
4abea8ca0a
commit
98804d034d
1 changed files with 1 additions and 1 deletions
|
@ -2236,7 +2236,7 @@ class locked_file(object):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue