Subject: bin/24964: gzip(1) fails to handle ".bz2" archives correctly
To: None <gnats-bugs@gnats.NetBSD.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 03/30/2004 08:04:34
>Number:         24964
>Category:       bin
>Synopsis:       gzip(1) fails to handle ".bz2" archives correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 30 06:05:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0A 2004-03-29 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 2.0A NetBSD 2.0A (LYSSA) #0: Mon Mar 29 12:50:37 CEST 2004 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
gzip(1) does no longer handle ".bz2" properly:

tron@lyssa:/src/distfiles/mplayer-1.0rc3>tar tvzf default-1.7.tar.bz2 
tar: Cannot identify format. Searching...
tar: Cpio file name length 53557 is out of range
tar: Invalid header, starting valid header search.
tar: Cpio file name length 55882 is out of range
tar: Cpio file name length 20296 is out of range
tar: Cpio file name length 34942 is out of range
tar: Cpio file name length 56504 is out of range
tar: End of archive volume 1 reached
tar: bcpio vol 1, 0 files, 173439 bytes read, 0 bytes written in 1 secs (173439 bytes/sec)
tar: Unexpected EOF on archive file
tron@lyssa:/src/distfiles/mplayer-1.0rc3>bzcat default-1.7.tar.bz2 | tar tvf -
drwxr-xr-x  2 jemand   106            0 Jan 29  2003 default
-rw-r--r--  1 jemand   106         1590 Oct 18  2001 default/about.png
[...]
-rw-r--r--  1 jemand   106        17876 Sep  7  2001 default/volume.png
tar: ustar vol 1, 31 files, 205824 bytes read, 0 bytes written in 1 secs (205824 bytes/sec)

>How-To-Repeat:
tar tvzf foobar.tar.bz2

>Fix:
None provided.

>Release-Note:
>Audit-Trail:
>Unformatted: