diff options
author | Denis Vlasenko | 2007-03-22 18:56:23 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-22 18:56:23 +0000 |
commit | cbcff2936e3ff8382c7c9c79c8674e125fdae8ae (patch) | |
tree | f973c26f05c063c0172879c28b2fc3c06e320d19 /archival/gzip.c | |
parent | 1787e2246504d4252d2f42d2aac609c844c4cfe5 (diff) | |
download | busybox-cbcff2936e3ff8382c7c9c79c8674e125fdae8ae.zip busybox-cbcff2936e3ff8382c7c9c79c8674e125fdae8ae.tar.gz |
gzip: fix -d option handling
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index b8f5765..39391df 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -2034,7 +2034,6 @@ int gzip_main(int argc, char **argv) /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ opt = getopt32(argc, argv, "cfv" USE_GUNZIP("d") "q123456789" ); - argv += optind; option_mask32 &= 0x7; /* Clear -d, ignore -q, -0..9 */ //if (opt & 0x1) // -c //if (opt & 0x2) // -f @@ -2044,6 +2043,7 @@ int gzip_main(int argc, char **argv) return gunzip_main(argc, argv); } #endif + argv += optind; PTR_TO_GLOBALS = xzalloc(sizeof(struct globals) + sizeof(struct globals2)) + sizeof(struct globals); |