]> Dogcows Code - chaz/tar/commitdiff
(dump_file0): Count links only for actually dumped files
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 31 Mar 2008 08:02:53 +0000 (08:02 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 31 Mar 2008 08:02:53 +0000 (08:02 +0000)
src/create.c

index 768c0eb1227f4bec2d9ee16703ad20b389942391..413115cf06e974834f39f0f551f5b10fd420c1cc 100644 (file)
@@ -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;
        }
 
This page took 0.026321 seconds and 4 git commands to generate.