summaryrefslogtreecommitdiff
path: root/tests/link04.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 tar -c -l file fileSergey Poznyakoff2014-12-101-0/+5
| | | | | | | | When the same file is added several times to the archive, count correctly the number of hard links. See also 37ddfb0b. * src/create.c (dump_hard_link): Don't decrease nlink if it is 0. * tests/link04.at: Test -cl options.
* Update copyright years.Sergey Poznyakoff2014-01-301-1/+1
|
* maint: update copyrights for 2013 and as per current GNU standardsPaul Eggert2012-12-311-8/+8
|
* tar: add comment to link04.at testPaul Eggert2010-08-241-0/+6
| | | | * tests/link04.at: Add explanatory comment at head.
* tar: handle files that occur multiple times but have link count 1Paul Eggert2010-08-231-0/+58
This patch was inspired by the following patch that addressed a similar problem in GNU coreutils du: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;h=efe53cc72b599979ea292754ecfe8abf7c839d22 * src/common.h (name_count): New decl. * src/create.c (trivial_link_count): New static var. (create_archive): Initialize it. (dump_hard_link, file_count_links): Use it, so that files with link count 1 are handled correctly when they are found multiple times. * src/names.c (allocated_entries): Renamed from allocated_names, since the identifier's name was misleading. All uses changed. (entries): Renamed from names. All uses changed. (scanned): Renamed from name_index. All uses changed. (name_count): New var. (name_add_name): Increment it. * tests/link04.at: New file. * tests/testsuite.at: Add it. * tests/Makefile.am (TESTSUITE_AT): Likewise.