bin/121598: bsdtar doesn't always report an error if a files
pattern fails to match
John Baldwin
jhb at FreeBSD.org
Tue Mar 11 12:50:02 UTC 2008
>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:
More information about the freebsd-bugs
mailing list