X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fmisc.c;h=3a23aa4d2fd0664b6b9680f3151484484671c867;hb=cef4d5e83830763a1acd5d603fb62a356df27299;hp=116eb9673a615e7144b1e110ab5ff580e648435d;hpb=acd833fb9815a8fe1c2bb9b90203e008a62ee374;p=chaz%2Ftar 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); }