Dr. Werner Fink 2012-10-02 17:32:58 +00:00 committed by Git OBS Bridge
parent f9d228b03d
commit c33c7813f2

View File

@ -125,21 +125,21 @@
+#ifdef HAVE_ZIO +#ifdef HAVE_ZIO
+ ext = strrchr (filename, '.'); + ext = strrchr (filename, '.');
+ if (ext) { + if (ext) {
+ char opt[2] = {'\0', '\0'}; + const char *opt;
+ char *name; + char *name;
+ +
+ if (STREQ (ext, ".gz")) + if (STREQ (ext, ".gz"))
+ *opt = 'g'; + opt = "g";
+ else if (STREQ (ext, ".z")) + else if (STREQ (ext, ".z"))
+ *opt = 'z'; + opt = "z";
+ else if (STREQ (ext, ".bz2")) + else if (STREQ (ext, ".bz2"))
+ *opt = 'b'; + opt = "b";
+ else if (STREQ (ext, ".xz")) + else if (STREQ (ext, ".xz"))
+ *opt = 'x'; + opt = "x";
+ else if (STREQ (ext, ".lzma")) + else if (STREQ (ext, ".lzma"))
+ *opt = 'l'; + opt = "l";
+ else if (STREQ (ext, ".Z")) + else if (STREQ (ext, ".Z"))
+ *opt = 'Z'; + opt = "Z";
+ else + else
+ goto nozio; + goto nozio;
+ +