bzip2: make -d actually work

This commit is contained in:
Denis Vlasenko 2007-10-21 18:59:58 +00:00
parent e5387a0574
commit 6fa3ab3cf1

View File

@ -11,7 +11,7 @@
enum { enum {
OPT_STDOUT = 0x1, OPT_STDOUT = 0x1,
OPT_FORCE = 0x2, OPT_FORCE = 0x2,
/* gunzip only: */ /* gunzip and bunzip2 only: */
OPT_VERBOSE = 0x4, OPT_VERBOSE = 0x4,
OPT_DECOMPRESS = 0x8, OPT_DECOMPRESS = 0x8,
OPT_TEST = 0x10, OPT_TEST = 0x10,
@ -161,7 +161,7 @@ USE_DESKTOP(long long) int unpack_bunzip2(void)
int bunzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int bunzip2_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int bunzip2_main(int argc, char **argv) int bunzip2_main(int argc, char **argv)
{ {
getopt32(argv, "cf"); getopt32(argv, "cfvdt");
argv += optind; argv += optind;
if (applet_name[2] == 'c') if (applet_name[2] == 'c')
option_mask32 |= OPT_STDOUT; option_mask32 |= OPT_STDOUT;