mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-09-20 23:24:13 +00:00
Fix handling of directories removed during incremental tar run
Co-authored-by: Sergey Poznyakoff <gray@gnu.org.ua> * paxutils: Upgrade * src/create.c (create_archive): Use file_removed_diag instead of calling the corresponding *_diag function directly. * tests/dirrem01.at: New testcase. * tests/dirrem02.at: New testcase. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise.
This commit is contained in:
committed by
Sergey Poznyakoff
parent
795877532e
commit
8b9026f3ae
+4
-2
@@ -1395,13 +1395,15 @@ create_archive (void)
|
||||
open_searchdir_flags);
|
||||
if (fd < 0)
|
||||
{
|
||||
open_diag (p->name);
|
||||
file_removed_diag (p->name, !p->parent,
|
||||
open_diag);
|
||||
break;
|
||||
}
|
||||
st.fd = fd;
|
||||
if (fstat (fd, &st.stat) != 0)
|
||||
{
|
||||
stat_diag (p->name);
|
||||
file_removed_diag (p->name, !p->parent,
|
||||
stat_diag);
|
||||
break;
|
||||
}
|
||||
st.orig_file_name = xstrdup (p->name);
|
||||
|
||||
Reference in New Issue
Block a user