aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 05f6cb582..bb58158f4 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -16,6 +16,8 @@
16 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 16 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
17 */ 17 */
18 18
19// TODO: full support for -v for DESKTOP
20
19#define SMALL_MEM 21#define SMALL_MEM
20 22
21#include <stdlib.h> 23#include <stdlib.h>
@@ -1134,7 +1136,7 @@ int gzip_main(int argc, char **argv)
1134 struct stat statBuf; 1136 struct stat statBuf;
1135 char *delFileName; 1137 char *delFileName;
1136 1138
1137 opt = bb_getopt_ulflags(argc, argv, "cf123456789q" USE_GUNZIP("d")); 1139 opt = bb_getopt_ulflags(argc, argv, "cf123456789qv" USE_GUNZIP("d"));
1138 //if (opt & 0x1) // -c 1140 //if (opt & 0x1) // -c
1139 //if (opt & 0x2) // -f 1141 //if (opt & 0x2) // -f
1140 /* Ignore 1-9 (compression level) options */ 1142 /* Ignore 1-9 (compression level) options */
@@ -1148,7 +1150,8 @@ int gzip_main(int argc, char **argv)
1148 //if (opt & 0x200) // -8 1150 //if (opt & 0x200) // -8
1149 //if (opt & 0x400) // -9 1151 //if (opt & 0x400) // -9
1150 //if (opt & 0x800) // -q 1152 //if (opt & 0x800) // -q
1151 if (ENABLE_GUNZIP && (opt & 0x1000)) { // -d 1153 //if (opt & 0x1000) // -v
1154 if (ENABLE_GUNZIP && (opt & 0x2000)) { // -d
1152 /* FIXME: bb_getopt_ulflags should not depend on optind */ 1155 /* FIXME: bb_getopt_ulflags should not depend on optind */
1153 optind = 1; 1156 optind = 1;
1154 return gunzip_main(argc, argv); 1157 return gunzip_main(argc, argv);