From nobody@FreeBSD.ORG  Sun Oct 22 07:25:59 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 647B537B4CF; Sun, 22 Oct 2000 07:25:59 -0700 (PDT)
Message-Id: <20001022142559.647B537B4CF@hub.freebsd.org>
Date: Sun, 22 Oct 2000 07:25:59 -0700 (PDT)
From: pekkas@netcore.fi
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: typoed tar -c clobbers archives
X-Send-Pr-Version: www-1.0

>Number:         22211
>Category:       bin
>Synopsis:       typoed tar -c clobbers archives
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 22 07:30:01 PDT 2000
>Closed-Date:    Mon Dec 3 01:45:42 PST 2001
>Last-Modified:  Mon Dec 03 01:48:57 PST 2001
>Originator:     Pekka Savola
>Release:        4.1.1-STABLE
>Organization:
Netcore
>Environment:
>Description:
Current tar (1.11.2) clobbers existing archives if called with:

tar zcvf test.tar.gz

when you meant to type:

tar zxvf test.tar.gz

This is, of course, a stupid typo, but more current tar versions (for example 1.13.17), detect and prevent the silliness:

$ tar zcvf test.tar.gz 
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.

>How-To-Repeat:
See above.
>Fix:
Please consider upgrading tar :-)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Mon Dec 3 01:45:42 PST 2001 
State-Changed-Why:  

FreeBSD -- Tools not policy.  Consider using the `w' option with tar, 
if you frequently encounter these types of problems. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22211 
>Unformatted:
