> What I noticed is that the tar header is formed incorrectly. It's supposed
> to
> contain the "ustar" TMAGIC indicator at offset 257 followed by a null.

That archive is in GNU tar format, which historically differs from ustar
format.  If you wish to create archives in ustar format use the -H
(--format) command line option:

  tar -Hustar -cf archive.tar ...

For a description of the -H option, refer to

  https://www.gnu.org/software/tar/manual/html_node/Option-Summary.html#IDX81

For a discussion of archive formats supported by tar, please see

  https://www.gnu.org/software/tar/manual/html_node/Formats.html

Regards,
Sergey

Reply via email to