diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-01 15:55:11 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-01 15:55:11 +0000 |
commit | 97a8dd3857aea9730382e2975a2ee2000fd23ebb (patch) | |
tree | 608f73898f3ed5f466dff68189625fa9328a15be /archival/gzip.c | |
parent | f8aa109a9f7c67b291f240fb3ed91da90f26359b (diff) | |
download | busybox-w32-97a8dd3857aea9730382e2975a2ee2000fd23ebb.tar.gz busybox-w32-97a8dd3857aea9730382e2975a2ee2000fd23ebb.tar.bz2 busybox-w32-97a8dd3857aea9730382e2975a2ee2000fd23ebb.zip |
g[un]zip: add support for -v (verbose).
Add CONFIG_DESKTOP, almost all bloat from this change
is hidden under that.
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 7 |
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); |