]> git.gag.com Git - debian/tar/commit
Fix bug in the inplementation of --one-top-level.
authorSergey Poznyakoff <gray@gnu.org>
Sat, 21 Nov 2015 19:56:49 +0000 (21:56 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Sat, 21 Nov 2015 19:56:49 +0000 (21:56 +0200)
commite4267874540f306b2b2b10cab43f50b2f93aadbe
treecec236c7bc61f51e66290ef823d52882f6034491
parente6fcc73efa7463fe20c30a20603d3a3f6abfd4e5
Fix bug in the inplementation of --one-top-level.

When extracting an archive that contains './' with the --one-top-level option,
the mode and ownership of '.' would be incorrectly applied to the current
working directory, instead of the requested top-level directory.

* src/list.c (enforce_one_top_level): Map '.' to the top-level
directory.
* tests/Makefile.am: Add onetop05.at
* tests/testsuite.at: Include onetop05.at.
* tests/onetop05.at: New file.
* tests/onetop01.at: Fix keywords.
* tests/onetop02.at: Likewise.
* tests/onetop03.at: Likewise.
* tests/onetop04.at: Likewise.
src/list.c
tests/Makefile.am
tests/onetop01.at
tests/onetop02.at
tests/onetop03.at
tests/onetop04.at
tests/onetop05.at [new file with mode: 0644]
tests/testsuite.at