Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/yt-dlp/yt-dlp into ytdlp
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/yt-dlp/yt-dlp:
  [utils] locked_file: Do not give executable bits for newly created files
  • Loading branch information
Lesmiscore committed Apr 9, 2022
2 parents 5396ed0 + 98804d0 commit 747e853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,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
Expand Down

0 comments on commit 747e853

Please sign in to comment.