mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
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
This commit is contained in:
parent
b19918bd36
commit
18febd99fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99346
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user