was calculating incorrect archive size for package w/ hard links
authorewt <devnull@localhost>
Fri, 3 Oct 1997 16:08:20 +0000 (16:08 +0000)
committerewt <devnull@localhost>
Fri, 3 Oct 1997 16:08:20 +0000 (16:08 +0000)
CVS patchset: 1838
CVS date: 1997/10/03 16:08:20

lib/cpio.c

index 473b505..af1096d 100644 (file)
@@ -862,6 +862,8 @@ int cpioBuildArchive(int fd, struct cpioFileMapping * mappings,
        parent = hlink;
        hlink = hlink->next;
        free(parent);
+
+       totalsize += size;
     }
 
     memset(&hdr, '0', sizeof(hdr));