X-Git-Url: https://git.cworth.org/git?p=tar;a=blobdiff_plain;f=src%2Fcreate.c;h=fde7ed171f9d40c64806ffee725c5f053ccafc15;hp=559aaa08b9fc1e55046c1b01a7d403b9a4a59bb8;hb=3d2977f28287e1d0311c1b0ce62cfeaa35785ec2;hpb=008190ee7bf322e7a906806d170bcde2aaa54f0a diff --git a/src/create.c b/src/create.c index 559aaa0..fde7ed1 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 || 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)