projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1787e22
)
gzip: fix -d option handling
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 22 Mar 2007 18:56:23 +0000
(18:56 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 22 Mar 2007 18:56:23 +0000
(18:56 -0000)
archival/gzip.c
patch
|
blob
|
history
diff --git
a/archival/gzip.c
b/archival/gzip.c
index b8f5765005312b289cc3aedbbe3ddf84f9a5aa5d..39391dfda8b0e9c3b0a64e04f37ef3ca693b5b6d 100644
(file)
--- 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);