From 7ed282cb04ade7021882782c6cdad7aa908d49e9 Mon Sep 17 00:00:00 2001 From: ewt Date: Fri, 3 Oct 1997 16:08:20 +0000 Subject: [PATCH] was calculating incorrect archive size for package w/ hard links CVS patchset: 1838 CVS date: 1997/10/03 16:08:20 --- lib/cpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cpio.c b/lib/cpio.c index 473b505..af1096d 100644 --- a/lib/cpio.c +++ b/lib/cpio.c @@ -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)); -- 2.7.4