From nobody@FreeBSD.org  Tue Mar 11 12:44:32 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 74F9C1065671
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Mar 2008 12:44:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 31DC88FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Mar 2008 12:44:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2BCfI1O056613
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Mar 2008 12:41:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2BCfIB3056612;
	Tue, 11 Mar 2008 12:41:18 GMT
	(envelope-from nobody)
Message-Id: <200803111241.m2BCfIB3056612@www.freebsd.org>
Date: Tue, 11 Mar 2008 12:41:18 GMT
From: John Baldwin <jhb@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsdtar doesn't always report an error if a files pattern fails to match
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121598
>Category:       bin
>Synopsis:       bsdtar(1) doesn't always report an error if a files pattern fails to match
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 11 12:50:02 UTC 2008
>Closed-Date:    Fri Sep 05 05:39:01 UTC 2008
>Last-Modified:  Fri Sep 05 05:39:01 UTC 2008
>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:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Tue Mar 11 13:02:34 UTC 2008 
Responsible-Changed-Why:  
Assign to Tim at his request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121598 
State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Fri Sep 5 05:33:44 UTC 2008 
State-Changed-Why:  
Fixed in -CURRENT (r179322), 7-STABLE (r181514), and 6-STABLE (r182337) 

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