From: Sergey Poznyakoff Date: Mon, 31 Mar 2008 08:02:53 +0000 (+0000) Subject: (dump_file0): Count links only for actually dumped files X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=c2d2e806a15a83d873f950c5f90190dc91ba3189;p=chaz%2Ftar (dump_file0): Count links only for actually dumped files --- 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; }