From eaaadcfd366e8620385944a251da932cf9c843bc Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 29 Oct 2007 16:56:13 +0000 Subject: [PATCH] (file_count_links): do nothing if hard_dereference_option is set. --- src/create.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/create.c b/src/create.c index 7be10d2..de81639 100644 --- a/src/create.c +++ b/src/create.c @@ -1422,6 +1422,8 @@ dump_hard_link (struct tar_stat_info *st) static void file_count_links (struct tar_stat_info *st) { + if (hard_dereference_option) + return; if (st->stat.st_nlink > 1) { struct link *duplicate; -- 2.44.0