From bakul@gate.bitblocks.com  Sat Jan 15 21:09:21 2005
Return-Path: <bakul@gate.bitblocks.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 176E216A4F6
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Jan 2005 21:09:21 +0000 (GMT)
Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BFB5043D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Jan 2005 21:09:20 +0000 (GMT)
	(envelope-from bakul@gate.bitblocks.com)
Received: from gate.bitblocks.com (localhost [127.0.0.1])
	by gate.bitblocks.com (8.13.1/8.13.1) with ESMTP id j0FL9KLC010763
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Jan 2005 13:09:20 -0800 (PST)
	(envelope-from bakul@gate.bitblocks.com)
Received: (from bakul@localhost)
	by gate.bitblocks.com (8.13.1/8.13.1/Submit) id j0FL9KiW010762;
	Sat, 15 Jan 2005 13:09:20 -0800 (PST)
	(envelope-from bakul)
Message-Id: <200501152109.j0FL9KiW010762@gate.bitblocks.com>
Date: Sat, 15 Jan 2005 13:09:20 -0800 (PST)
From: Bakul Shah <bakul@BitBlocks.com>
Reply-To: Bakul Shah <bakul@BitBlocks.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: builtin gzip in tar fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76294
>Category:       i386
>Synopsis:       builtin gzip in tar fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 15 21:10:27 GMT 2005
>Closed-Date:    Thu May 12 03:41:24 GMT 2005
>Last-Modified:  Thu May 12 03:41:24 GMT 2005
>Originator:     Bakul Shah
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD mail.bitblocks.com 6.0-CURRENT FreeBSD 6.0-CURRENT #14: Sun Dec 26 22:48:11 PST 2004 bakul@dragon.bitblocks.com:/usr/obj/usr/src/sys/BAKUL i386


	
>Description:
	tar -ztvf foo fails where gzcat foo | tar -tvf - works
>How-To-Repeat:
	pick up http://swtch.com/plan9port/plan9port.tgz
	and try running the above commands

>Fix:

	Work around is to not use -z flag of tar


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->kientzle 
Responsible-Changed-By: kientzle 
Responsible-Changed-When: Sun Feb 13 23:13:50 GMT 2005 
Responsible-Changed-Why:  
I wrote it; I'll fix it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76294 

From: Tim Kientzle <kientzle@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, bakul@BitBlocks.com
Cc:  
Subject: Re: i386/76294: builtin gzip in tar fails
Date: Sun, 13 Feb 2005 15:38:05 -0800

 Bakul,
 
 I can't reproduce this here (and the gzip decompression
 code hasn't changed in a long, long time now).
 
 Just to double-check, could you tell me the output of the
 following:
 
 % md5 plan9port.tgz
 % bsdtar --version
 
 The first will let me know whether the plan9port.tgz file
 I just fetched is the same one you're looking at.
 The second will let me know which version of bsdtar
 you're using (in case it's a problem I've already fixed).
 
 For reference, the file I have here has this md5:
 MD5 (/usr/home/tim/plan9port.tgz) = 37d5968a68480002191e085e268bf992
 
 Thanks,
 
 Tim Kientzle
 

From: Tim Kientzle <tim@kientzle.com>
To: freebsd-gnats-submit@FreeBSD.org, bakul@BitBlocks.com
Cc:  
Subject: Re: i386/76294: builtin gzip in tar fails
Date: Thu, 24 Feb 2005 22:19:47 -0800

 This is really a zlib bug.  Decompressing the same
 file with minigzip from zlib 1.2.1 fails at the same point;
 using zlib 1.2.2 succeeds.
 
 Maybe it's time to update zlib.
 

From: Theo Schlossnagle <jesus@omniti.com>
To: bakul@BitBlocks.com, freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/76294: builtin gzip in tar fails
Date: Fri, 25 Feb 2005 21:06:15 -0500

 The workaround provided isn't valid as pkg_add uses this.. I believe 
 this same bug is causing x509 signed tgz packages to be unusable via 
 pkg_add on FreeBSD 5.3 where they worked on 5.2.1
 
 // Theo Schlossnagle
 // Principal Engineer -- http://www.omniti.com/~jesus/
 // OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
 // Ecelerity: fastest MTA on Earth
 
State-Changed-From-To: open->analyzed 
State-Changed-By: kientzle 
State-Changed-When: Fri Mar 4 02:19:47 GMT 2005 
State-Changed-Why:  
I'm trying to figure out what needs to be updated in our libz. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76294 
State-Changed-From-To: analyzed->closed 
State-Changed-By: kientzle 
State-Changed-When: Thu May 12 03:40:45 GMT 2005 
State-Changed-Why:  
Fix verified by submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76294 
>Unformatted:
