Files
tar/tests
Paul Eggert 37ddfb0b7e tar: handle files that occur multiple times but have link count 1
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.
2010-08-23 19:13:12 -07:00
..
2009-03-07 16:30:44 +02:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2008-06-26 06:32:25 +00:00
2010-03-02 18:39:40 +02:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-08-27 20:12:14 +03:00
2010-04-01 00:03:51 +03:00
2008-06-26 06:32:25 +00:00
2009-08-07 14:52:55 +03:00
2007-06-27 13:30:12 +00:00
2010-07-15 11:25:15 -07:00
2008-06-26 06:32:25 +00:00
2008-06-26 06:32:25 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-10-14 17:55:15 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2007-10-04 07:16:39 +00:00
2009-10-14 23:26:52 +03:00
2007-06-27 13:30:12 +00:00
2007-06-27 13:30:12 +00:00
2009-08-27 20:12:14 +03:00