aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-22 18:56:23 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-22 18:56:23 +0000
commitcbcff2936e3ff8382c7c9c79c8674e125fdae8ae (patch)
treef973c26f05c063c0172879c28b2fc3c06e320d19
parent1787e2246504d4252d2f42d2aac609c844c4cfe5 (diff)
downloadbusybox-w32-cbcff2936e3ff8382c7c9c79c8674e125fdae8ae.tar.gz
busybox-w32-cbcff2936e3ff8382c7c9c79c8674e125fdae8ae.tar.bz2
busybox-w32-cbcff2936e3ff8382c7c9c79c8674e125fdae8ae.zip
gzip: fix -d option handling
-rw-r--r--archival/gzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index b8f576500..39391dfda 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -2034,7 +2034,6 @@ int gzip_main(int argc, char **argv)
2034 2034
2035 /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ 2035 /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */
2036 opt = getopt32(argc, argv, "cfv" USE_GUNZIP("d") "q123456789" ); 2036 opt = getopt32(argc, argv, "cfv" USE_GUNZIP("d") "q123456789" );
2037 argv += optind;
2038 option_mask32 &= 0x7; /* Clear -d, ignore -q, -0..9 */ 2037 option_mask32 &= 0x7; /* Clear -d, ignore -q, -0..9 */
2039 //if (opt & 0x1) // -c 2038 //if (opt & 0x1) // -c
2040 //if (opt & 0x2) // -f 2039 //if (opt & 0x2) // -f
@@ -2044,6 +2043,7 @@ int gzip_main(int argc, char **argv)
2044 return gunzip_main(argc, argv); 2043 return gunzip_main(argc, argv);
2045 } 2044 }
2046#endif 2045#endif
2046 argv += optind;
2047 2047
2048 PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2)) 2048 PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2))
2049 + sizeof(struct globals); 2049 + sizeof(struct globals);