From nobody@FreeBSD.org  Wed Feb 27 21:10:31 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 392EA1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2008 21:10:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2DF3F8FC2D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2008 21:10:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1RL7hrp067361
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Feb 2008 21:07:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1RL7hJh067360;
	Wed, 27 Feb 2008 21:07:43 GMT
	(envelope-from nobody)
Message-Id: <200802272107.m1RL7hJh067360@www.freebsd.org>
Date: Wed, 27 Feb 2008 21:07:43 GMT
From: Jan Mikkelsen <janm-freebsd-pr@transactionware.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Tar regression from 6.2 to 6.3 with --strip-components
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121158
>Category:       bin
>Synopsis:       [regression] bsdtar(1): tar regression from 6.2 to 6.3 with --strip-components
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 21:20:00 UTC 2008
>Closed-Date:    Fri Aug 15 05:09:12 UTC 2008
>Last-Modified:  Fri Aug 15 05:10:00 UTC 2008
>Originator:     Jan Mikkelsen
>Release:        6.3-RC2
>Organization:
Transactionware
>Environment:
FreeBSD midgard.transactionware.com 6.3-RC2 FreeBSD 6.3-RC2 #0: Fri Jan 11 10:55:31 EST 2008     root@midgard.transactionware.com:/scratch/janm/p4/image-freebsd-std-2008.1/work/base-freebsd/scratch/janm/p4/image-freebsd-std-2008.1/FreeBSD/src/sys/TW-SMP  amd64

>Description:
I've just noticed a regression in tar from 6.2 to 6.3:

Running this on 6.2 produces no output:

#!/bin/sh
mkdir -p a b output
touch a/file1 b/file2
tar cf test.tar a b
tar -x -C output --strip-components 1 -f test.tar

On 6.3, it produces this output:

: Invalid empty pathname
: Invalid empty pathname
tar: Error exit delayed from previous errors.

And the tar extraction returns a failure.

>How-To-Repeat:
As above.
>Fix:
Not known at this stage.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Feb 27 21:39:09 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121158 
State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Fri Aug 15 05:08:37 UTC 2008 
State-Changed-Why:  
Fixed in trunk with r179322, merged to 7-STABLE and 6-STABLE. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/121158: commit references a PR
Date: Fri, 15 Aug 2008 05:08:53 +0000 (UTC)

 kientzle    2008-08-15 05:08:24 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.bin/tar          util.c 
   Log:
   SVN rev 181749 on 2008-08-15 05:08:24Z by kientzle
   
   Point merge of a fix for --strip-components.  I'm going to
   wait a little longer before I merge the rest of r179322.
   
   PR:             bin/121158
   
   Revision  Changes    Path
   1.13.2.7  +4 -0      src/usr.bin/tar/util.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
