summaryrefslogtreecommitdiff
path: root/tests/onetop01.at
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearsPaul Eggert2023-01-061-1/+1
| | | | | | | | | UPDATE_COPYRIGHT_USE_INTERVALS=1 \ gnulib/build-aux/update-copyright \ $(git ls-files | sed -e '/^gnulib$/d /^paxutils$/d /^COPYING$/d /\/fdl.texi$/d')
* Update copyright yearsSergey Poznyakoff2022-01-021-1/+1
|
* Update copyright yearsSergey Poznyakoff2021-01-061-1/+1
|
* Update copyright yearsSergey Poznyakoff2020-02-081-1/+1
|
* Version 1.31release_1_31Sergey Poznyakoff2019-01-021-1/+1
|
* Update copyright yearsSergey Poznyakoff2017-01-021-1/+1
|
* Update copyright yearsSergey Poznyakoff2016-01-201-1/+1
|
* Fix bug in the inplementation of --one-top-level.Sergey Poznyakoff2015-11-211-1/+1
| | | | | | | | | | | | | | | | 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.
* Improve one-top-level functionalitySergey Poznyakoff2014-01-281-0/+42
Make sure the changes become visible with --show-transformed-names. * src/common.h (strip_compression_suffix): New function. (one_top_level): Rename to one_top_level_dir. All uses changed. * src/extract.c (extr_init): Use strip_compression_suffix. Bail out if unable to determine top-level directory. (maybe_prepend_name): Remove. All uses removed. * src/tar.c (options): --one-top-level takes optional argument. (parse_opt): Handle it. * src/list.c (enforce_one_top_level): New function. (transform_stat_info): Call enforce_one_top_level if required. * src/suffix.c (compression_suffixes): List "tar" (no compression); terminate with NULL entry. (find_compression_suffix): New static. (strip_compression_suffix): New function. * doc/tar.1: Update. * doc/tar.texi: Update. * tests/onetop01.at: New testcase. * tests/onetop02.at: New testcase. * tests/onetop03.at: New testcase. * tests/Makefile.am: Add new testcases. * tests/testsuite.at: Likewise.