Issue a warning if there's a non-zero exit value.

This commit is contained in:
Tim Kientzle 2007-03-24 03:25:49 +00:00
parent 7fa9cd7871
commit 033583fc78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167861
2 changed files with 4 additions and 1 deletions

View File

@ -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}

View File

@ -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);
}