From 88347995b26949c319022437b0ef74aa02aac82d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 9 Aug 2009 11:20:52 +0300 Subject: [PATCH] Minor fixes. * src/misc.c (file_removed_diag): Set exit code to TAREXIT_DIFFERS. --- src/misc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/misc.c b/src/misc.c index 116eb96..3a23aa4 100644 --- a/src/misc.c +++ b/src/misc.c @@ -750,9 +750,13 @@ file_removed_diag (const char *name, bool top_level, void (*diagfn) (char const *name)) { if (!top_level && errno == ENOENT) - WARNOPT (WARN_FILE_REMOVED, - (0, 0, _("%s: File removed before we read it"), - quotearg_colon (name))); + { + WARNOPT (WARN_FILE_REMOVED, + (0, 0, _("%s: File removed before we read it"), + quotearg_colon (name))); + if (exit_status == TAREXIT_SUCCESS) + exit_status = TAREXIT_DIFFERS; + } else diagfn (name); } -- 2.44.0