]> git.cworth.org Git - tar/commitdiff
Revert "Preserve hard links with --remove-files"
authorCarl Worth <cworth@cworth.org>
Tue, 4 Aug 2009 17:29:49 +0000 (10:29 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 4 Aug 2009 17:29:49 +0000 (10:29 -0700)
This reverts commit f1ed85d46043c523cd5b8196c1d266f3606a2531.

The idea behind these patches was just fine, but upstream just
accepted a slightly modified version, so I'm reverting mine in
favor of that from upstream.

debian/changelog
src/create.c

index 747988e10926a6040a756dba9fa1f6445ac7d01c..df3a1253994ef3ad511e9476f48abdbb3715d01f 100644 (file)
@@ -3,9 +3,8 @@ tar (1.22-1.2) UNRELEASED; urgency=low
   * Add Carl Worth as an uploader.
   * Fix to allow parallel build (-j2), closes #535319
   * Don't close file stream before EOF, closes #525818
-  * Preserve hard links with --remove-files, closes #188663
 
- -- Carl Worth <cworth@cworth.org>  Wed, 29 Jul 2009 21:28:45 -0700
+ -- Carl Worth <cworth@cworth.org>  Wed, 29 Jul 2009 16:18:18 -0700
 
 tar (1.22-1.1) unstable; urgency=low
 
index 559aaa08b9fc1e55046c1b01a7d403b9a4a59bb8..fde7ed171f9d40c64806ffee725c5f053ccafc15 100644 (file)
@@ -1377,7 +1377,7 @@ static Hash_table *link_table;
 static bool
 dump_hard_link (struct tar_stat_info *st)
 {
-  if (link_table && (st->stat.st_nlink > 1 || remove_files_option))
+  if (link_table && st->stat.st_nlink > 1)
     {
       struct link lp;
       struct link *duplicate;
@@ -1424,7 +1424,7 @@ file_count_links (struct tar_stat_info *st)
 {
   if (hard_dereference_option)
     return;
-  if (st->stat.st_nlink > 1 || remove_files_option)
+  if (st->stat.st_nlink > 1)
     {
       struct link *duplicate;
       struct link *lp = xmalloc (offsetof (struct link, name)