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 | |
parent | a15a36abd12dba7dcf5cab390100dfcbc16dd6b8 (diff) | |
download | librpm-tizen-eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c.tar.gz librpm-tizen-eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c.tar.bz2 librpm-tizen-eb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c.zip |
Start abstracting compressed I/O.
CVS patchset: 2552
CVS date: 1998/11/22 19:48:48
Diffstat (limited to 'build')
-rw-r--r-- | build/Makefile.in | 1 | ||||
-rw-r--r-- | build/pack.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/build/Makefile.in b/build/Makefile.in index f46a9c9fc..1d1396c28 100644 --- a/build/Makefile.in +++ b/build/Makefile.in @@ -92,6 +92,7 @@ LIBRPMALIAS_FILENAME = @LIBRPMALIAS_FILENAME@ LIBRPMRC_FILENAME = @LIBRPMRC_FILENAME@ LIBS = @LIBS@ LN_S = @LN_S@ +LOCALEDIR = @LOCALEDIR@ MACROFILES = @MACROFILES@ MAKEINFO = @MAKEINFO@ MISCDIR = @MISCDIR@ 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) |