Displaying 2 results from an estimated 2 matches for "support_zip".
Did you mean:
dsupport_zip
2016 Jan 06
0
[PATCH klibc] gzip: Fix silent fallback to decompression
...break;
case 't':
test = to_stdout = 1;
-#ifndef decompress
- decompress = 1;
-#endif
+ decompress_wanted = 1;
break;
case 'v':
verbose++; quiet = 0; break;
@@ -329,6 +324,14 @@ int main (argc, argv)
}
} /* loop on all arguments */
+#ifndef SUPPORT_ZIP
+ if (!decompress_wanted) {
+ fprintf(stderr, "%s: this version does not support compression\n",
+ progname);
+ do_exit(ERROR);
+ }
+#endif
+
/* By default, save name and timestamp on compression but do not
* restore them on decompression.
*/
-------------- next pa...
2016 Jan 06
0
[klibc:master] gzip: Fix silent fallback to decompression
...break;
case 't':
test = to_stdout = 1;
-#ifndef decompress
- decompress = 1;
-#endif
+ decompress_wanted = 1;
break;
case 'v':
verbose++; quiet = 0; break;
@@ -329,6 +324,14 @@ int main (argc, argv)
}
} /* loop on all arguments */
+#ifndef SUPPORT_ZIP
+ if (!decompress_wanted) {
+ fprintf(stderr, "%s: this version does not support compression\n",
+ progname);
+ do_exit(ERROR);
+ }
+#endif
+
/* By default, save name and timestamp on compression but do not
* restore them on decompression.
*/