From mwm@mired.org  Mon Dec 13 08:21:54 2004
Return-Path: <mwm@mired.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5E24516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Dec 2004 08:21:54 +0000 (GMT)
Received: from delight.idiom.com (delight.idiom.com [216.240.32.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4794A43D6E
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Dec 2004 08:21:54 +0000 (GMT)
	(envelope-from mwm@mired.org)
Received: from idiom.com (idiom.com [216.240.32.1])
	by delight.idiom.com (Postfix) with ESMTP id 3E2DA1CD9A9
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Dec 2004 00:21:54 -0800 (PST)
Received: from mired.org (mwm@idiom [216.240.32.1])
	by idiom.com (8.12.11/8.12.11) with SMTP id iBD8Lqsp048541
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Dec 2004 00:21:53 -0800 (PST)
	(envelope-from mwm@mired.org)
Received: (qmail 13691 invoked by uid 1001); 13 Dec 2004 08:21:52 -0000
Message-Id: <20041213082152.13690.qmail@mired.org>
Date: 13 Dec 2004 08:21:52 -0000
From: Mike Meyer <mwm@mired.org>
Reply-To: Mike Meyer <mwm@mired.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: bsdtar refuses to handle some tar files
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75012
>Category:       bin
>Synopsis:       bsdtar refuses to handle some tar files
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 13 08:30:24 GMT 2004
>Closed-Date:    Wed Dec 22 02:50:46 GMT 2004
>Last-Modified:  Wed Dec 22 02:50:46 GMT 2004
>Originator:     Mike Meyer
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
Meyer Consulting
>Environment:
System: FreeBSD guru.mired.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


>Description:

I've got a tar file that bsdtar refuses to process completely. It gets
about halfway through it, and then blows up. gtar works just fine, and
so does the standard tar on 4.6.

Unfortunately, I can't let you have a copy of the tar file because
it's licensed. You can get it via the web at
http://www.acm.org/~perlman/stat/, but you have to agree to Perlmans
license restrictions.

>How-To-Repeat:
	Get the tar file from the above address, and try running tar
	on it on a 5.3 system.
>Fix:
	The work around is to use gtar. But bsdtar ought to be fixed.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: simon 
Responsible-Changed-When: Mon Dec 13 14:08:26 GMT 2004 
Responsible-Changed-Why:  
Over to bsdtar author. 

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

From: Tim Kientzle <kientzle@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, mwm@mired.org
Cc:  
Subject: Re: bin/75012: bsdtar refuses to handle some tar files
Date: Tue, 14 Dec 2004 22:24:54 -0800

 Mike,
 
 Could you please tell me the size (and MD5 checksum)
 of the file you're looking at and the
 exact command line you used?
 
 I'm trying to get a copy, but I want to be sure
 that I'm looking at the same file.  I also
 want to check whether you uncompressed the file
 first or just fed it to bsdtar directly?
 
 If the archive isn't too big, it may be faster
 to send me a copy through private email.  I
 note that the license restrictions do permit:
 
 "You may distribute copies of |STAT, provided that mass distribution 
 (such as electronic bulletin boards or anonymous ftp) is not used."
 
 Thanks,
 
 Tim Kientzle

State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Wed Dec 22 02:37:23 GMT 2004 
State-Changed-Why:  
Adjusted the bidding for recognizing tar headers.  The bid 
logic is used to determine whether a hard link entry with a 
non-zero size contains a body (as permitted by SUSv3) or 
not (as required by all earlier tar implementations). 
The relatively low bid for old-format tar headers was 
causing the hard link logic to assume there was not a valid 
header and so try to read the following data as the body of 
the entry. 

Corrected in r1.29 of libarchive/archive_read_support_format_tar.c 
Will be MFCed soon. 


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