Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2000 07:25:59 -0700 (PDT)
From:      pekkas@netcore.fi
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/22211: typoed tar -c clobbers archives
Message-ID:  <20001022142559.647B537B4CF@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22211
>Category:       bin
>Synopsis:       typoed tar -c clobbers archives
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 22 07:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001022142559.647B537B4CF>