----- Original Message -----
From: "Rob Landley" <[email protected]>
To: "Denys Vlasenko" <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, October 27, 2010 5:14 AM
Subject: Re: What on earth happened to platform.h?
>
> And while we're at it, I should add the magic probes for "tar xvf
> thing.tar.gz" and such, since there are easily identifiable headers for
gz,
> bz2, and uncompressed file formats all in the first couple dozen bytes.
(The
> lack of any lzma identifying magic is lzma's problem, but we can always
fall
> back to attempting that one for unknown types...)
>
xz-5.0.0 has been released a few days ago, and have it's own magic so lzma
without magic is really the past. Gnu tar know those magic
{ ct_tar },
{ ct_none, },
{ ct_compress, 2, "\037\235", COMPRESS_PROGRAM, "-Z" },
{ ct_gzip, 2, "\037\213", GZIP_PROGRAM, "-z" },
{ ct_bzip2, 3, "BZh", BZIP2_PROGRAM, "-j" },
{ ct_lzip, 4, "LZIP", LZIP_PROGRAM, "--lzip" },
{ ct_lzma, 6, "\xFFLZMA", LZMA_PROGRAM, "--lzma" },
{ ct_lzop, 4, "\211LZO", LZOP_PROGRAM, "--lzop" },
{ ct_xz, 6, "\xFD" "7zXZ", XZ_PROGRAM, "-J" },
Gilles
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox