diff options
author | jbj <devnull@localhost> | 1998-11-22 19:48:48 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-11-22 19:48:48 +0000 |
commit | eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c (patch) | |
tree | 002437098b7dd9b121a90da5fceeb805fd348b77 /build/pack.c | |
parent | a15a36abd12dba7dcf5cab390100dfcbc16dd6b8 (diff) | |
download | rpm-eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c.tar.gz rpm-eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c.tar.bz2 rpm-eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c.zip |
Start abstracting compressed I/O.
CVS patchset: 2552
CVS date: 1998/11/22 19:48:48
Diffstat (limited to 'build/pack.c')
-rw-r--r-- | build/pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/pack.c b/build/pack.c index 986456791..40f747c85 100644 --- a/build/pack.c +++ b/build/pack.c @@ -394,10 +394,10 @@ static int cpio_gzip(FD_t fdo, CSA_t *csa) { char *failedFile; cfd->cpioIoType = cpioIoTypeGzFd; - cfd->cpioGzFd = gzdopen(dup(fdFileno(fdo)), "w9"); + cfd->cpioGzFd = gzdFdopen(fdDup(fdFileno(fdo)), "w9"); rc = cpioBuildArchive(cfd, csa->cpioList, csa->cpioCount, NULL, NULL, &csa->cpioArchiveSize, &failedFile); - gzclose(cfd->cpioGzFd); + gzdClose(cfd->cpioGzFd); if (rc) { if (rc & CPIO_CHECK_ERRNO) |