Fix --delay-directory-restore on archives with reversed member ordering.
commitd70b8b3b3978df2ba204f3afe60b18ded6164b07
authorSergey Poznyakoff <gray@gnu.org>
Thu, 11 Apr 2019 10:45:32 +0000 (11 13:45 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 11 Apr 2019 10:45:32 +0000 (11 13:45 +0300)
tree04d4180b9a53a9b67801d5b60c7138ed887cfe83
parentc445d99d4f8aae6932a5385b8fbfb77a77acbff5
Fix --delay-directory-restore on archives with reversed member ordering.

* src/extract.c (find_direct_ancestor): Remove useless test.
(delay_set_stat): If the file name being added is already in
the list, update stored data instead of creating a new entry.
This works for archives with reversed order of members.
* tests/extrac22.at: New testcase.
* tests/Makefile.am: Add new testcase.
* tests/testsuite.at: Include new testcase.
src/extract.c
tests/Makefile.am
tests/extrac22.at [new file with mode: 0644]
tests/testsuite.at