Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix large inner files with PAX format #36

Merged
merged 4 commits into from
Feb 26, 2024

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Feb 26, 2024

If the file size is larger than 12 digits tarfile writes a larger header when using PAX. Since we can't set the size to anything other than 0 initially (in case the inner tar creation raise), we set the mtime to a float to ensure we get a PAX header

fixes home-assistant/supervisor#4924

@bdraco bdraco force-pushed the fix_large_inner_files_pax branch from a1ebeb4 to 0781191 Compare February 26, 2024 19:16
@bdraco bdraco marked this pull request as ready for review February 26, 2024 19:53
securetar/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Stefan Agner <[email protected]>
@agners agners merged commit 02cbd14 into pvizeli:main Feb 26, 2024
1 check passed
@bdraco bdraco deleted the fix_large_inner_files_pax branch February 26, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants