Minor fixes.

* src/misc.c (file_removed_diag): Set exit code to TAREXIT_DIFFERS.
This commit is contained in:
Sergey Poznyakoff
2009-08-09 11:20:52 +03:00
parent acd833fb98
commit 88347995b2

View File

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