From 97a8dd3857aea9730382e2975a2ee2000fd23ebb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 1 Oct 2006 15:55:11 +0000 Subject: g[un]zip: add support for -v (verbose). Add CONFIG_DESKTOP, almost all bloat from this change is hidden under that. --- archival/gzip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'archival/gzip.c') 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 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ +// TODO: full support for -v for DESKTOP + #define SMALL_MEM #include @@ -1134,7 +1136,7 @@ int gzip_main(int argc, char **argv) struct stat statBuf; char *delFileName; - opt = bb_getopt_ulflags(argc, argv, "cf123456789q" USE_GUNZIP("d")); + opt = bb_getopt_ulflags(argc, argv, "cf123456789qv" USE_GUNZIP("d")); //if (opt & 0x1) // -c //if (opt & 0x2) // -f /* Ignore 1-9 (compression level) options */ @@ -1148,7 +1150,8 @@ int gzip_main(int argc, char **argv) //if (opt & 0x200) // -8 //if (opt & 0x400) // -9 //if (opt & 0x800) // -q - if (ENABLE_GUNZIP && (opt & 0x1000)) { // -d + //if (opt & 0x1000) // -v + if (ENABLE_GUNZIP && (opt & 0x2000)) { // -d /* FIXME: bb_getopt_ulflags should not depend on optind */ optind = 1; return gunzip_main(argc, argv); -- cgit v1.2.3