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
bsdtar: "Truncated tar archive: Unknown error" on extracting archive containing sparse file #2138
Comments
This is the same issue already reported in #2125 |
Oh, I assumed the issue was different, since in this case bsdtar does extract the file correctly (extracted size 4,000,000,000 bytes). Whereas in #2125 the file was corrupted on extraction with no error message. |
This is different, actually. This file is in GNU pax sparse format 1.0. To double-check my understanding, this file was created by bsdtar on Windows 10? It does indeed appear to be subtly malformed. I'll have to dig into it a bit to try to figure out how this happened. Thanks for reporting it. |
I used bsdtar 3.7.3 on Windows (10 and 11) to create and extract the archive. Hopefully you can reproduce the issue by just extracting it, then using the commands I pasted above. |
Another point of information... If when creating the archive you specify more than one file, the second and subsequent files are not actually added to the archive! For example:
The archive created is missing the two text files. |
I'm using version 3.7.3 of bsdtar on Windows 10 x64.
After creating a tar archive containing a single sparse file, there is an issue on extracting it. A (possibly bogus?) error message is shown, but it seems that the complete file is extracted correctly.
The tar archive (compressed with Zip) is attached. ~3MB.
test3_tar.zip
The text was updated successfully, but these errors were encountered: