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
+ ext = strrchr (filename, '.');
+ if (ext) {
+ char opt[2] = {'\0', '\0'};
+ const char *opt;
+ char *name;
+
+ if (STREQ (ext, ".gz"))
+ *opt = 'g';
+ opt = "g";
+ else if (STREQ (ext, ".z"))
+ *opt = 'z';
+ opt = "z";
+ else if (STREQ (ext, ".bz2"))
+ *opt = 'b';
+ opt = "b";
+ else if (STREQ (ext, ".xz"))
+ *opt = 'x';
+ opt = "x";
+ else if (STREQ (ext, ".lzma"))
+ *opt = 'l';
+ opt = "l";
+ else if (STREQ (ext, ".Z"))
+ *opt = 'Z';
+ opt = "Z";
+ else
+ goto nozio;
+