On Saturday 30 June 2007 13:54, Erick Tyndall wrote:
> I built busybox-1.6.0 and selected all the options for tar. When I use tar 
> to extract File-4.17.tar.gz or Perl-5.8.8.tar.bz2 I get the following error:
> 
> tar -xzf file-4.17.tar.gz
> tar: corrupted octal value in tar header
> 
> It doesn't extract anything.

Likely fixed in svn. With
CONFIG_TAR=y
CONFIG_FEATURE_TAR_CREATE=y
CONFIG_FEATURE_TAR_BZIP2=y
CONFIG_FEATURE_TAR_LZMA=y
CONFIG_FEATURE_TAR_FROM=y
CONFIG_FEATURE_TAR_GZIP=y
CONFIG_FEATURE_TAR_COMPRESS=y
CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y
CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
CONFIG_FEATURE_TAR_LONG_OPTIONS=y

I see this:

# wget http://bent.latency.net/bent/darcs/file-4.17/src/file-4.17.tar.gz
Connecting to bent.latency.net (64.21.79.2:80)
file-4.17.tar.gz     100% |**********************************|   543k 00:00:00 
ETA
# ./busybox zcat file-4.17.tar.gz | ./busybox tar xvf -
file-4.17/README
file-4.17/acinclude.m4
.....
file-4.17/python/py_magic.h
file-4.17/python/setup.py

and I see file-4.17/ subdir extracted.

In case I failed to find the same File-4.17.tar.gz that you are trying to untar:

# md5sum file-4.17.tar.gz
50919c65e0181423d66bb25d7fe7b0fd  file-4.17.tar.gz

Please provide the URL next time.

> When I use tar to extract linux-2.6.21.3.tar.bz2 it gives an error but 
> successfully extracts everything...

"warning" != "error".

> tar -xjf linux-2.6.21.3.tar.bz2
> tar: warning: skipping header 'g'

It encountered pax header block and we currently do not support these,
we just skip over them. Most of the time it works.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox
  • tar applet Erick Tyndall
    • Re: tar applet Denis Vlasenko

Reply via email to