Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2008 20:14:42 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r185411 - releng/7.1/usr.bin/tar
Message-ID:  <200811282014.mASKEgBn028882@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Fri Nov 28 20:14:41 2008
New Revision: 185411
URL: http://svn.freebsd.org/changeset/base/185411

Log:
  MFC r185359: Non-zero exit when directories disappear
  during the filesystem traversal.
  
  Tested by:	David Wolfskill
  Approved by:	re

Modified:
  releng/7.1/usr.bin/tar/   (props changed)
  releng/7.1/usr.bin/tar/write.c

Modified: releng/7.1/usr.bin/tar/write.c
==============================================================================
--- releng/7.1/usr.bin/tar/write.c	Fri Nov 28 20:13:23 2008	(r185410)
+++ releng/7.1/usr.bin/tar/write.c	Fri Nov 28 20:14:41 2008	(r185411)
@@ -659,8 +659,10 @@ write_hierarchy(struct bsdtar *bsdtar, s
 		const struct stat *st = NULL, *lst = NULL;
 		int descend;
 
-		if (tree_ret == TREE_ERROR_DIR)
+		if (tree_ret == TREE_ERROR_DIR) {
 			bsdtar_warnc(bsdtar, errno, "%s: Couldn't visit directory", name);
+			bsdtar->return_value = 1;
+		}
 		if (tree_ret != TREE_REGULAR)
 			continue;
 		lst = tree_current_lstat(tree);



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