Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright years | Paul Eggert | 2023-01-06 | 1 | -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 years | Sergey Poznyakoff | 2022-01-02 | 1 | -1/+1 |
| | |||||
* | Update copyright years | Sergey Poznyakoff | 2021-01-06 | 1 | -1/+1 |
| | |||||
* | Update copyright years | Sergey Poznyakoff | 2020-02-08 | 1 | -1/+1 |
| | |||||
* | Version 1.31release_1_31 | Sergey Poznyakoff | 2019-01-02 | 1 | -1/+1 |
| | |||||
* | Update copyright years | Sergey Poznyakoff | 2017-01-02 | 1 | -1/+1 |
| | |||||
* | Update copyright years | Sergey Poznyakoff | 2016-01-20 | 1 | -1/+1 |
| | |||||
* | Fix bug in the inplementation of --one-top-level. | Sergey Poznyakoff | 2015-11-21 | 1 | -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 functionality | Sergey Poznyakoff | 2014-01-28 | 1 | -0/+45 |
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. |