summaryrefslogtreecommitdiff
path: root/lib/install.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-11-22 19:48:48 +0000
committerjbj <devnull@localhost>1998-11-22 19:48:48 +0000
commiteb0436b4b23ebdc8d18d2745223b6ceaf9e9a94c (patch)
tree002437098b7dd9b121a90da5fceeb805fd348b77 /lib/install.c
parenta15a36abd12dba7dcf5cab390100dfcbc16dd6b8 (diff)
downloadlibrpm-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 'lib/install.c')
-rw-r--r--lib/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/install.c b/lib/install.c
index 861733bd5..b6f0c8f47 100644
--- a/lib/install.c
+++ b/lib/install.c
@@ -1009,12 +1009,12 @@ static int installArchive(FD_t fd, struct fileInfo * files,
{ CFD_t cfdbuf, *cfd = &cfdbuf;
cfd->cpioIoType = cpioIoTypeGzFd;
- cfd->cpioGzFd = gzdopen(fdFileno(fd), "r");
+ cfd->cpioGzFd = gzdFdopen(fd, "r"); /* XXX cpioGzFd == fd */
rc = cpioInstallArchive(cfd, map, mappedFiles,
((notify && archiveSize) || specFile) ?
callback : NULL,
&info, &failedFile);
- gzclose(cfd->cpioGzFd);
+ gzdClose(cfd->cpioGzFd);
}
if (rc) {