From root@kanga.honeypot.net  Sun Oct 17 16:03:21 2004
Return-Path: <root@kanga.honeypot.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 503BE16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Oct 2004 16:03:21 +0000 (GMT)
Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1FADE43D54
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Oct 2004 16:03:21 +0000 (GMT)
	(envelope-from root@kanga.honeypot.net)
Received: from localhost (localhost [127.0.0.1])
	by kanga.honeypot.net (Postfix) with ESMTP id 71CF9B85B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 17 Oct 2004 11:03:20 -0500 (CDT)
Received: from kanga.honeypot.net ([127.0.0.1])
 by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 87995-09 for <FreeBSD-gnats-submit@freebsd.org>;
 Sun, 17 Oct 2004 11:03:19 -0500 (CDT)
Received: by kanga.honeypot.net (Postfix, from userid 0)
	id 8613DB859; Sun, 17 Oct 2004 11:03:19 -0500 (CDT)
Message-Id: <20041017160319.8613DB859@kanga.honeypot.net>
Date: Sun, 17 Oct 2004 11:03:19 -0500 (CDT)
From: Kirk Strauser <kirk@strauser.com>
Reply-To: Kirk Strauser <kirk@strauser.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: gtar in base system doesn't seem to honor --one-file-system option
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72787
>Category:       bin
>Synopsis:       gtar in base system doesn't seem to honor --one-file-system option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 17 16:10:34 GMT 2004
>Closed-Date:    Wed Feb 20 17:12:13 UTC 2008
>Last-Modified:  Wed Feb 20 17:12:13 UTC 2008
>Originator:     Kirk Strauser
>Release:        FreeBSD 5.3-BETA7 i386
>Organization:
The Strauser Group
>Environment:
System: FreeBSD kanga.honeypot.net 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Sun Oct 10 13:47:08 CDT 2004 root@kanga.honeypot.net:/usr/obj/usr/src/sys/KANGA i386


	
>Description:
GNU tar in the base system (and the version in ports) seems to ignore the
--one-file-system option.  For example, when trying to create a tarball
of the root filesystem, it chokes on /proc (which it should be ignoring):

    root@kanga:/# gtar --one-file-system -cf /dev/null /
    gtar: Removing leading `/' from member names
    gtar: /proc: Cannot savedir: Invalid argument
    gtar: Error exit delayed from previous errors
    root@kanga:/#

bsdtar, on the other hand, works as expected:

    root@kanga:/# tar --one-file-system -cf /dev/null /
    tar: Removing leading '/' from member names
    root@kanga:/#

This is relatively recent behavior.  I had been using a 5.2.1-era system
until a few weeks ago, and only discovered this behavior after I updated
to 5.3-RC4 (and later) and my nightly Amanda backups began to fail.
>How-To-Repeat:
Attempt to create a tarball of a directory containing a mountpoint for a
proc filesystem.
	
>Fix:
	


>Release-Note:
>Audit-Trail:

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, kirk@strauser.com
Cc:  
Subject: Re: bin/72787: gtar in base system doesn't seem to honor --one-file-system
 option
Date: Wed, 20 Feb 2008 01:41:53 +0100

 Kirk,
 
 gtar has been busted from the base system 18 months ago.
 
 I've checked the version from the ports on a 7.0 system and found gtar
 is doing fine with --one-file-system.
 
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Wed Feb 20 15:38:19 UTC 2008 
State-Changed-Why:  
To submitter:  GNU tar is no longer in FreeBSD 6.x or 7.x, and in addition 
it looks like the ports version of gtar works correctly now.  Given that 
the chance of an updated gtar in 5.x is now slim (barring security issues), 
can this PR be closed? 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Wed Feb 20 15:38:19 UTC 2008 
Responsible-Changed-Why:  
Track 

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

From: Kirk Strauser <kirk@strauser.com>
To: bug-followup@FreeBSD.org,
 kirk@strauser.com
Cc:  
Subject: Re: bin/72787: gtar in base system doesn't seem to honor --one-file-system option
Date: Wed, 20 Feb 2008 10:58:16 -0600

 Certainly.  Thanks!
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Wed Feb 20 17:11:46 UTC 2008 
State-Changed-Why:  
Submitter is happy for this to be closed 

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