[ 
https://issues.apache.org/jira/browse/COMPRESS-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865476#action_12865476
 ] 

Sebb commented on COMPRESS-107:
-------------------------------

Ant 1.7.0 writes "ustar" (no trailing space or null) to the magic field, which 
it assumes is 8 chars long.
It does not appear to write any version information.

So the "magic" for Ant tar files appears to be "ustar\0\0" with no following 
version information.

Unless there are better ideas, I propose to add that to the factory tar 
matching algorithm.

> ArchiveStreamFactory does not recognise tar files created by Ant
> ----------------------------------------------------------------
>
>                 Key: COMPRESS-107
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-107
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Sebb
>             Fix For: 1.1
>
>
> ArchiveStreamFactory does not recognise tar files created by Ant.
> These appear to have magic of  "ustar\0" (i.e. same as MAGIC_POSIX) followed 
> by "\0\0".
> Note that Compress can process the files OK.
> Patch to follow after checking what Ant writes as the signature.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to