diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-03-31 08:02:53 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-03-31 08:02:53 +0000 |
commit | c2d2e806a15a83d873f950c5f90190dc91ba3189 (patch) | |
tree | 5076601d36096350cc1deb1d4807fa65b4f52b48 | |
parent | 2a89f7a0a88535513eb0ed81cf7ee866b185ebf4 (diff) | |
download | tar-c2d2e806a15a83d873f950c5f90190dc91ba3189.tar.gz |
(dump_file0): Count links only for actually dumped files
-rw-r--r-- | src/create.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/create.c b/src/create.c index 768c0eb1..413115cf 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; } |