Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2008 12:41:18 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/121598: bsdtar doesn't always report an error if a files pattern fails to match
Message-ID:  <200803111241.m2BCfIB3056612@www.freebsd.org>
Resent-Message-ID: <200803111250.m2BCo2e9022132@freefall.freebsd.org>

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

>Number:         121598
>Category:       bin
>Synopsis:       bsdtar doesn't always report an error if a files pattern fails to match
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 11 12:50:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     John Baldwin
>Release:        6.x
>Organization:
>Environment:
>Description:
FreeBSD6:

$ touch foo
$ tar zcfv tar.tgz foo
$ tar zxfv tar.tgz foo bar
x foo
$ echo $?
0

On Linux, this is an error:

$ touch foo
$ tar zcfv tar.tgz foo
$ tar zxfv tar.tgz foo bar
foo
tar: bar: Not found in archive
tar: Error exit delayed from previous errors
$ echo $?
2

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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