X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fcreate.c;fp=src%2Fcreate.c;h=ff0e9d572c5e8606d0bf6a15c6c387bd4201ccd2;hb=5de13253a6452a29eedec21a53980febd6d3b2b9;hp=fde7ed171f9d40c64806ffee725c5f053ccafc15;hpb=70684a4f996aab9212d9a71e12ce0e3e33bed134;p=tar diff --git a/src/create.c b/src/create.c index fde7ed1..ff0e9d5 100644 --- a/src/create.c +++ b/src/create.c @@ -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; @@ -1461,7 +1461,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))); } } }