On Wednesday 27 October 2010 08:25, Gilles Espinasse wrote:
> ----- 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...)

We do it already for COMPRESS, GZIP, BZIP2 and XZ by looking at magic,
and also detect .lzma by file extension.

We do it not only in tar, but in man, modprobe, loadfont etc...

Actually, tar's way of doing it is a bit rusty,
we can do it better now. get_header_tar_gz() and friends
can be eliminated...

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

Reply via email to