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
..
2010-08-19 15:50:07 -07:00
2009-03-07 16:30:44 +02:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2009-08-05 10:38:50 +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-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2008-06-26 06:32:25 +00:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2009-08-12 19:25:29 +03:00
2010-03-02 18:39:40 +02:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07: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
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-08-27 20:12:14 +03:00
2010-07-18 12:20:47 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-08-08 19:53:54 +03:00
2010-04-01 00:03:51 +03:00
2008-06-26 06:32:25 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-08-07 14:52:55 +03:00
2009-08-13 16:45:49 +03:00
2010-08-19 15:50:07 -07:00
2008-07-31 07:12:50 +00:00
2007-06-27 13:30:12 +00:00
2010-01-24 15:52:22 +02:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-07-30 23:49:32 +03:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-23 19:13:12 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-07-15 11:25:15 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -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
2010-08-23 19:13:12 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-05-25 10:18:59 +03:00
2007-06-27 13:30:12 +00:00
2010-03-20 13:20:30 +02:00
2009-10-14 17:55:15 +03:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-05-25 10:18:59 +03:00
2010-08-19 15:50:07 -07:00
2010-03-20 13:20:30 +02:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2007-06-27 13:30:12 +00:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2010-07-11 22:57:17 +03:00
2007-06-27 13:30:12 +00:00
2010-07-11 22:57:17 +03:00
2007-06-27 13:30:12 +00:00
2007-10-04 07:16:39 +00:00
2010-08-23 19:13:12 -07:00
2009-08-08 19:53:54 +03:00
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07: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
2010-08-19 15:50:07 -07:00
2010-08-19 15:50:07 -07:00
2009-08-27 20:12:14 +03:00