From 9567cf71c6cf8ef72fe8b5697d4d2a186edeaf98 Mon Sep 17 00:00:00 2001 From: sobomax Date: Wed, 3 Jul 2002 13:01:40 +0000 Subject: 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(-) (limited to 'contrib/tar/src') diff --git a/contrib/tar/src/compare.c b/contrib/tar/src/compare.c index aecd6bd..da9dc33 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; } -- cgit v1.1