Partially downloaded files have the executable bit set
See original GitHub issueChecklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Description
I noticed that while a stream download is in progress, the .part files with the partially-download data have the executable permission bit set. This is nonsensical, as the files are not actually executable.
The final download files do not have the executable bit set, making this problem transient and mostly cosmetic.
Verbose log
$ yt-dlp --version
2022.04.08
$ ls -l # while yt-dlp https://www.youtube.com/channel/UCaJzpFqRQa0Bcu9BWi_drKw -f bestaudio is active in another terminal
[SNIP]
-rw-r--r-- 1 stirlitz stirlitz 3539889 2019-11-23 'The X2 Anthem GM [Cw_KFkaDRtA].webm'
-rwxr-xr-x 1 stirlitz stirlitz 261120 04-18 17:21 'Thinking of You [yoXZMdmUlyQ].webm.part'
-rw-r--r-- 1 stirlitz stirlitz 3544772 2020-05-19 'Time Machine 2019 [3zjtMpBkVSE].webm'
[SNIP]
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Why would a source file have the execute bit set?
There is no reason for a C source file to be executable. This may sometimes happen if the file has been transferred from...
Read more >How to Resume Interrupted Downloads in Google Chrome
In PowerShell, type "wget.exe -h" to load the Wget help menu. Rename the Partially Downloaded File. Before you download a file through Wget,...
Read more >Download Build Artifacts: : broken file permission mask #6364
Issue Description. Permissions on the files are lost when downloaded to the agent. We have some files set to be executable.
Read more >unetbootin - There is no application installed for executable files
Right click on unetbootin-linux-583 , click on Properties, choose the tab Permissions. Check the small square Allow executing file as ...
Read more >Using Background Intelligent Transfer Service (BITS) from .NET
Your program can create new downloads from and uploads to HTTP web servers and SMB file servers. Your program can also monitor BITS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The verbose head is always relevant, at least to get the exact version info
Even you don’t provide verbose log!? 😭
The issue is supposed to be fixed by https://github.com/yt-dlp/yt-dlp/commit/98804d034d04d21cbeb8cd43d1e1d90f1cdae836. But Idk whether you are using master or release