summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2007-03-24 03:25:49 +0000
committerkientzle <kientzle@FreeBSD.org>2007-03-24 03:25:49 +0000
commit4fa4b823d2c644282c22a436c1681ec29003c7b0 (patch)
treee6f620e70fa3f7732791bfdf848656ca3b205a12
parentbc64e87ca71b61679b03722866970f3b95fd5f89 (diff)
downloadFreeBSD-src-4fa4b823d2c644282c22a436c1681ec29003c7b0.zip
FreeBSD-src-4fa4b823d2c644282c22a436c1681ec29003c7b0.tar.gz
Issue a warning if there's a non-zero exit value.
-rw-r--r--usr.bin/tar/Makefile2
-rw-r--r--usr.bin/tar/bsdtar.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile
index a829eea..1eb73ea 100644
--- a/usr.bin/tar/Makefile
+++ b/usr.bin/tar/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PROG= bsdtar
-VERSION= 2.0.23
+VERSION= 2.0.25
SRCS= bsdtar.c getdate.y matching.c read.c tree.c util.c write.c
WARNS?= 5
DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ}
diff --git a/usr.bin/tar/bsdtar.c b/usr.bin/tar/bsdtar.c
index 01fab02..7626a43 100644
--- a/usr.bin/tar/bsdtar.c
+++ b/usr.bin/tar/bsdtar.c
@@ -657,6 +657,9 @@ main(int argc, char **argv)
}
cleanup_exclusions(bsdtar);
+ if (bsdtar->return_value != 0)
+ bsdtar_warnc(bsdtar, 0,
+ "Error exit delayed from previous errors.");
return (bsdtar->return_value);
}
OpenPOWER on IntegriCloud