]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix spurious diagnostic during extraction of . with --keep-newer-files
authorSergey Poznyakoff <gray@gnu.org>
Wed, 5 Jun 2024 15:19:10 +0000 (18:19 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Wed, 5 Jun 2024 15:19:10 +0000 (18:19 +0300)
commit1e6ce98e3a4ef5c807458a35973af7e3503c678c
tree64c26ac4e5d269fd45fd3e1b3a4441b126d5e8d8
parent883f2e6dcaf87b4b449e55ed4f08dda1e701dae7
Fix spurious diagnostic during extraction of . with --keep-newer-files

Bug reported in https://savannah.gnu.org/bugs/?65838.

Bug introduced by 79d1ac38c1.

* src/extract.c (make_directories): Restore second argument.  This
reverts the change made in 79d1ac38c1.
(maybe_recoverable, rename_directory): Update calls to make_directories.
* tests/extrac27.at: New file.
* tests/Makefile.am: Add new test.
* tests/testsuite.at: Likewise.
src/extract.c
tests/Makefile.am
tests/extrac27.at [new file with mode: 0644]
tests/testsuite.at