> > Hi Denys
> >
> > The attached patch adds support for .txz and .tlzma tar archives. For
> > .txz the proper way would be to add the magic detection
> 
> The autodetection should already work, see archival/tar.c:

Using git master:

$ ./busybox tar tvf /tmp/test.txz
tar: invalid tar magic

Renaming the file to .tar.xz lets bb tar read it.

> I am not convinced .txz and .tlzma extensions are common.
> (In my opinion, existence of .tgz extension was a mistake).

They exist, and GNU tar handles them, so I think bb tar shouldn't puke
when it sees one. Busybox does handle .tgz and .tbz2, because they have
the magic detection already written (xz magic is marked todo in
archival/libarchive/get_header_tar.c).

- Lauri

-- 
http://www.fastmail.fm - Does exactly what it says on the tin

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to