From 18febd99fb52b9ac493220d3882fbb44d76d8145 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Wed, 3 Jul 2002 13:01:40 +0000 Subject: [PATCH] Fix another POLA breakage in a new tar: in diff mode presence of file in the archive, but its absence in the file system should be reported as difference, not as error. Reported by: bde --- contrib/tar/src/compare.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/tar/src/compare.c b/contrib/tar/src/compare.c index aecd6bd1efea..da9dc33b3569 100644 --- a/contrib/tar/src/compare.c +++ b/contrib/tar/src/compare.c @@ -406,10 +406,14 @@ get_stat_data (char const *file_name, struct stat *stat_data) if (status != 0) { if (errno == ENOENT) - stat_warn (file_name); + { + report_difference (_("does not exist")); + } else - stat_error (file_name); - report_difference (0); + { + stat_error (file_name); + report_difference (0); + } return 0; }