From c2d2e806a15a83d873f950c5f90190dc91ba3189 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 31 Mar 2008 08:02:53 +0000 Subject: [PATCH] (dump_file0): Count links only for actually dumped files --- src/create.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/create.c b/src/create.c index 768c0eb..413115c 100644 --- a/src/create.c +++ b/src/create.c @@ -1616,6 +1616,7 @@ dump_file0 (struct tar_stat_info *st, const char *p, case dump_status_ok: case dump_status_short: mv_end (); + file_count_links (st); break; case dump_status_fail: @@ -1625,8 +1626,6 @@ dump_file0 (struct tar_stat_info *st, const char *p, abort (); } - file_count_links (st); - ok = status == dump_status_ok; } -- 2.44.0