[
https://issues.apache.org/jira/browse/COMPRESS-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027779#comment-16027779
]
Sebb commented on COMPRESS-398:
-------------------------------
We should add more of this info to the archivers.tar package Javadoc [1]
Also maybe we need to optionally allow for different terminators on output.
Perhaps provide a config class that can be passed to constructors?
[1]
http://commons.apache.org/proper/commons-compress/javadocs/api-1.13/org/apache/commons/compress/archivers/tar/package-summary.html
> Uncorrect string terminal symbol in entry when creating Tar archive using
> TarArchiveOutputStream
> ------------------------------------------------------------------------------------------------
>
> Key: COMPRESS-398
> URL: https://issues.apache.org/jira/browse/COMPRESS-398
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.14
> Reporter: Yaroslav Trymbach
> Priority: Minor
>
> I create Tar archive using TarArchiveOutputStream. And I've got one
> contradiction in output achive file with Tar-file format specification.
> https://www.gnu.org/software/tar/manual/html_node/Standard.html#SEC186
> Specification has next sentention for entry header fields:
> "The name, linkname, magic, uname, and gname are null-terminated character
> strings. All other fields are zero-filled octal numbers in ASCII. Each
> numeric field of width w contains w minus 1 digits, and a null."
> But in file generated TarArchiveOutputStream octal numbers fields (mode,
> size, checksum etc) has terminated character not NULL (0x00) but SPACE
> (0x20), so some programs have problems while work with this files.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)