diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-07-03 13:01:40 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-07-03 13:01:40 +0000 |
commit | 9567cf71c6cf8ef72fe8b5697d4d2a186edeaf98 (patch) | |
tree | 891c4f05203291d33dcb984e3479b895f84ce14d /contrib | |
parent | 364206b008d621ad5eca6df5937d6dbc641a1f95 (diff) | |
download | FreeBSD-src-9567cf71c6cf8ef72fe8b5697d4d2a186edeaf98.zip FreeBSD-src-9567cf71c6cf8ef72fe8b5697d4d2a186edeaf98.tar.gz |
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
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/tar/src/compare.c | 10 |
1 files changed, 7 insertions, 3 deletions
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; } |