diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-03-24 03:25:49 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-03-24 03:25:49 +0000 |
commit | 4fa4b823d2c644282c22a436c1681ec29003c7b0 (patch) | |
tree | e6f620e70fa3f7732791bfdf848656ca3b205a12 | |
parent | bc64e87ca71b61679b03722866970f3b95fd5f89 (diff) | |
download | FreeBSD-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/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/tar/bsdtar.c | 3 |
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); } |