diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-02-15 10:57:35 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-02-15 11:09:18 +0200 |
commit | 41654f91f08eeff204d2ec2dabf2b81530060aaa (patch) | |
tree | d60e049deacea18c919b23eef9f413a0a75911cb /tests/Makefile.am | |
parent | 8d90723d306651648f19e32c2c1505aa9a152fe8 (diff) | |
download | tar-41654f91f08eeff204d2ec2dabf2b81530060aaa.tar.gz |
Fix handling of linked rename chains in incremental backups
* src/incremen.c: Change the meaning of the DIRF_RENAMED flag. Now it
marks a directory which is the last one in a chain of renames.
Regular renamed directories are recognized by their orig member being
non-NULL. Directories marked with DIRF_RENAMED start encoding of renames.
(procdir): Clear DIRF_RENAMED flag on directories which are origins for
renames.
(makedumpdir): Use the orig member to check if the directory is a
result of a rename.
(store_rename): Move the check for DIR_IS_RENAMED to the caller. Don't
clear the DIRF_RENAMED, it is not needed any more.
* tests/rename06.at: New test.
* tests/Makefile.am: Add rename06.at
* tests/testsuite.at: Likewise.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index a8df88c1..dc1dc544 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -200,6 +200,7 @@ TESTSUITE_AT = \ rename03.at\ rename04.at\ rename05.at\ + rename06.at\ remfiles01.at\ remfiles02.at\ remfiles03.at\ |