diff options
author | Denis Vlasenko | 2008-06-27 21:52:41 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-27 21:52:41 +0000 |
commit | 55da0be405bf4246ceb644b17b91d2686a9f1399 (patch) | |
tree | 4abe047d8dbbe365cf6d20d7def5ba512453e508 /archival/bzip2.c | |
parent | 3dee8e2bac464eb66b14ac42806c8611b6fb6a19 (diff) | |
download | busybox-55da0be405bf4246ceb644b17b91d2686a9f1399.zip busybox-55da0be405bf4246ceb644b17b91d2686a9f1399.tar.gz |
support gzip -t and bzip2 -t
Diffstat (limited to 'archival/bzip2.c')
-rw-r--r-- | archival/bzip2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/bzip2.c b/archival/bzip2.c index eb570c4..62df4aa 100644 --- a/archival/bzip2.c +++ b/archival/bzip2.c @@ -162,11 +162,11 @@ int bzip2_main(int argc ATTRIBUTE_UNUSED, char **argv) opt_complementary = "s2"; /* -s means -2 (compatibility) */ /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ - opt = getopt32(argv, "cfv" USE_BUNZIP2("d") "123456789qzs" ); + opt = getopt32(argv, "cfv" USE_BUNZIP2("dt") "123456789qzs"); #if ENABLE_BUNZIP2 /* bunzip2_main may not be visible... */ - if (opt & 0x8) // -d + if (opt & 0x18) // -d and/or -t return bunzip2_main(argc, argv); - opt >>= 4; + opt >>= 5; #else opt >>= 3; #endif |