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;
{
if (hard_dereference_option)
return;
- if (st->stat.st_nlink > 1)
+ if (st->stat.st_nlink > 1 || remove_files_option)
{
struct link *duplicate;
struct link *lp = xmalloc (offsetof (struct link, name)