]> git.cworth.org Git - tar/commit
Fix hard links recognition with -c --remove-files
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 30 Jul 2009 20:48:04 +0000 (23:48 +0300)
committerCarl Worth <cworth@cworth.org>
Tue, 4 Aug 2009 17:32:29 +0000 (10:32 -0700)
commitce41a492c238193a2736060d8c8f92dfdc8cc943
tree19f74208fad1bb6cd9c00bf120ad1d67dfc3c06d
parent3d2977f28287e1d0311c1b0ce62cfeaa35785ec2
Fix hard links recognition with -c --remove-files

* src/create.c (dump_hard_link): Always look up in the link table
if remove_files_option is set. Patch suggested by Theodore Ts'o
<tytso@mit.edu>.
(check_links): Remove extra newline from the warning message.
* tests/link02.at, tests/link03.at: New testcases.
* tests/Makefile.am (TESTSUITE_AT): Add link02.at and link03.at
* tests/testsuite.at: Include link02.at and link03.at
src/create.c
tests/Makefile.am
tests/link01.at
tests/link02.at [new file with mode: 0644]
tests/link03.at [new file with mode: 0644]
tests/testsuite.at