.
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=35
This commit is contained in:
parent
f9d228b03d
commit
c33c7813f2
@ -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;
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user