[PATCH] tar: support the common file extensions .tlzma and .txz
Lauri Kasanen
curaga at operamail.com
Wed Feb 29 20:03:30 UTC 2012
> > 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
More information about the busybox
mailing list