aboutsummaryrefslogtreecommitdiff
path: root/archival/gzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/gzip.c')
-rw-r--r--archival/gzip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index dce40ec92..5c9d6b3b2 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -2049,9 +2049,9 @@ int gzip_main(int argc ATTRIBUTE_UNUSED, char **argv)
2049 unsigned opt; 2049 unsigned opt;
2050 2050
2051 /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ 2051 /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */
2052 opt = getopt32(argv, "cfv" USE_GUNZIP("d") "q123456789n" ); 2052 opt = getopt32(argv, "cfv" USE_GUNZIP("dt") "q123456789n");
2053#if ENABLE_GUNZIP /* gunzip_main may not be visible... */ 2053#if ENABLE_GUNZIP /* gunzip_main may not be visible... */
2054 if (opt & 0x8) // -d 2054 if (opt & 0x18) // -d and/or -t
2055 return gunzip_main(argc, argv); 2055 return gunzip_main(argc, argv);
2056#endif 2056#endif
2057 option_mask32 &= 0x7; /* ignore -q, -0..9 */ 2057 option_mask32 &= 0x7; /* ignore -q, -0..9 */
@@ -2062,6 +2062,7 @@ int gzip_main(int argc ATTRIBUTE_UNUSED, char **argv)
2062 2062
2063 SET_PTR_TO_GLOBALS(xzalloc(sizeof(struct globals) + sizeof(struct globals2)) 2063 SET_PTR_TO_GLOBALS(xzalloc(sizeof(struct globals) + sizeof(struct globals2))
2064 + sizeof(struct globals)); 2064 + sizeof(struct globals));
2065 barrier();
2065 G2.l_desc.dyn_tree = G2.dyn_ltree; 2066 G2.l_desc.dyn_tree = G2.dyn_ltree;
2066 G2.l_desc.static_tree = G2.static_ltree; 2067 G2.l_desc.static_tree = G2.static_ltree;
2067 G2.l_desc.extra_bits = extra_lbits; 2068 G2.l_desc.extra_bits = extra_lbits;