From owner-cvs-src@FreeBSD.ORG Thu May 3 04:33:11 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAE1416A403; Thu, 3 May 2007 04:33:11 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8531313C457; Thu, 3 May 2007 04:33:11 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l434XB3T005734; Thu, 3 May 2007 04:33:11 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l434XBvW005733; Thu, 3 May 2007 04:33:11 GMT (envelope-from cperciva) Message-Id: <200705030433.l434XBvW005733@repoman.freebsd.org> From: Colin Percival Date: Thu, 3 May 2007 04:33:11 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/tar write.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2007 04:33:11 -0000 cperciva 2007-05-03 04:33:11 UTC FreeBSD src repository Modified files: usr.bin/tar write.c Log: If lstat(2) fails, have bsdtar return a non-zero exit code if the failed path is one which was specified on the command line. This is a compromise between the situation prior to revision 1.57 (where a race between tar(1) and rm(1) could cause tar(1) to spuriously report an error) and the situation after revision 1.57 (where "tar -c /no/such/path" prints a warning but returns with an exit code of zero). Inspired by: rafan MFC after: 1 week Revision Changes Path 1.62 +10 -0 src/usr.bin/tar/write.c