summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-08-31 09:44:52 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-08-31 09:44:52 +0300
commit5ca7197e33b0e02c42abc13ad953e5fa958f01f8 (patch)
tree73e65476c51835f7fa6fc3833efb9161445ba813
parentf9de5ed43058c207e70c86cdd8fa34cbfeb545cd (diff)
downloadrpm-5ca7197e33b0e02c42abc13ad953e5fa958f01f8.tar.gz
rpm-5ca7197e33b0e02c42abc13ad953e5fa958f01f8.tar.bz2
rpm-5ca7197e33b0e02c42abc13ad953e5fa958f01f8.zip
Accept direct compressor names as Fopen() modes too
-rw-r--r--rpmio/rpmio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index e729bc58c..9711cff74 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -1753,20 +1753,20 @@ fprintf(stderr, "*** Fdopen(%p,%s) %s\n", fd, fmode, fdbg(fd));
if (rstreq(end, "fdio")) {
iof = fdio;
#if HAVE_ZLIB_H
- } else if (rstreq(end, "gzdio")) {
+ } else if (rstreq(end, "gzdio") || rstreq(end, "gzip")) {
iof = gzdio;
fd = gzdFdopen(fd, zstdio);
#endif
#if HAVE_BZLIB_H
- } else if (rstreq(end, "bzdio")) {
+ } else if (rstreq(end, "bzdio") || rstreq(end, "bzip2")) {
iof = bzdio;
fd = bzdFdopen(fd, zstdio);
#endif
#if HAVE_LZMA_H
- } else if (rstreq(end, "xzdio")) {
+ } else if (rstreq(end, "xzdio") || rstreq(end, "xz")) {
iof = xzdio;
fd = xzdFdopen(fd, zstdio);
- } else if (rstreq(end, "lzdio")) {
+ } else if (rstreq(end, "lzdio") || rstreq(end, "lzma")) {
iof = lzdio;
fd = lzdFdopen(fd, zstdio);
#endif