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

When tarball is created with a long filename with size of 512 or multiples of 512, GNU tar is raising tar: A lone zero block at #45

Closed
bv-vijay opened this issue Aug 25, 2023 · 0 comments · Fixed by #50

Comments

@bv-vijay
Copy link

bv-vijay commented Aug 25, 2023

The long filename header has size as 512 and we're adding a zero-block @io.write("\0" * (512 - (long_name.length % 512))), so tar is expecting one more zero-block for file ending.

bv-vijay added a commit to bv-vijay/minitar that referenced this issue Aug 25, 2023
bv-vijay added a commit to bv-vijay/minitar that referenced this issue Aug 26, 2023
halostatue added a commit that referenced this issue Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant