]> Dogcows Code - chaz/tar/blobdiff - src/create.c
Fix hard links recognition with -c --remove-files
[chaz/tar] / src / create.c
index 245b6c3a88254d7c265b4e26d8f77b922623b4ce..1031cc2be928c7f44019db1243dce16208d93616 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)
+  if (link_table && (st->stat.st_nlink > 1 || remove_files_option))
     {
       struct link lp;
       struct link *duplicate;
@@ -1468,7 +1468,7 @@ check_links (void)
     {
       if (lp->nlink)
        {
-         WARN ((0, 0, _("Missing links to %s.\n"), quote (lp->name)));
+         WARN ((0, 0, _("Missing links to %s."), quote (lp->name)));
        }
     }
 }
This page took 0.023736 seconds and 4 git commands to generate.