]> git.gag.com Git - debian/tar/commit
Fix extraction from concatenated incremental archives with renamed directories.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 29 Nov 2015 18:51:08 +0000 (20:51 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 29 Nov 2015 19:11:08 +0000 (21:11 +0200)
commitd02c81df15e3ac3764c654f1e3bf24b5f45b3ed7
treecbfc84447e3f4a64f22b0529aeaf409da78294d1
parente4267874540f306b2b2b10cab43f50b2f93aadbe
Fix extraction from concatenated incremental archives with renamed directories.

Complements 15c02c2b.

* src/extract.c (delayed_set_stat): Change type of file_name.
(delay_set_stat): Allocate file_name member.
(free_delayed_set_stat): Free file_name.
(fixup_delayed_set_stat): New function.
(rename_directory): Call fixup_delayed_set_stat on success.

* tests/incr11.at: New testcase.
* tests/incr10.at: Improve description.
* tests/Makefile.am: Add incr11.at
* tests/testsuite.at: Add incr11.at
src/extract.c
tests/Makefile.am
tests/incr10.at
tests/incr11.at [new file with mode: 0644]
tests/testsuite.at