aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorLesmiscore <nao20010128@gmail.com>2022-04-10 01:23:27 +0900
committerLesmiscore <nao20010128@gmail.com>2022-04-10 01:23:27 +0900
commit98804d034d04d21cbeb8cd43d1e1d90f1cdae836 (patch)
treec5a805b027e9673ea974aa7ab99beb4b4fed33a0 /yt_dlp/utils.py
parent4abea8ca0af0773db9fb2372b272d497bd77b207 (diff)
downloadhypervideo-pre-98804d034d04d21cbeb8cd43d1e1d90f1cdae836.tar.lz
hypervideo-pre-98804d034d04d21cbeb8cd43d1e1d90f1cdae836.tar.xz
hypervideo-pre-98804d034d04d21cbeb8cd43d1e1d90f1cdae836.zip
[utils] locked_file: Do not give executable bits for newly created files
Authored by: Lesmiscore
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index ba9566cab..14dbbf59f 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -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