Hmm, why don't we actually pass the archive through gzip?
authormarc <devnull@localhost>
Thu, 15 Jan 1998 15:36:52 +0000 (15:36 +0000)
committermarc <devnull@localhost>
Thu, 15 Jan 1998 15:36:52 +0000 (15:36 +0000)
That sounds like a good idea.

CVS patchset: 1968
CVS date: 1998/01/15 15:36:52

build/pack.c

index ad149dc..122e014 100644 (file)
@@ -302,7 +302,7 @@ static int cpio_gzip(int fd, struct cpioFileMapping *cpioList,
        return RPMERR_FORK;
     }
 
-    rc = cpioBuildArchive(fd, cpioList, cpioCount, NULL, NULL,
+    rc = cpioBuildArchive(toGzip[1], cpioList, cpioCount, NULL, NULL,
                          archiveSize, &failedFile);
 
     close(toGzip[1]);