bzip2: make -s equivalent to -2 (compatible with standard bzip2)

telnetd: typo fix in comment
This commit is contained in:
Denis Vlasenko 2007-10-16 10:47:27 +00:00
parent 2450c450ab
commit 008eda2c54
2 changed files with 2 additions and 1 deletions

View File

@ -182,6 +182,7 @@ int bzip2_main(int argc, char **argv)
* --best alias for -9 * --best alias for -9
*/ */
opt_complementary = "s2"; /* -s means -2 (compatibility) */
/* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */
opt = getopt32(argv, "cfv" USE_BUNZIP2("d") "123456789qzs" ); opt = getopt32(argv, "cfv" USE_BUNZIP2("d") "123456789qzs" );
#if ENABLE_BUNZIP2 /* bunzip2_main may not be visible... */ #if ENABLE_BUNZIP2 /* bunzip2_main may not be visible... */

View File

@ -415,7 +415,7 @@ int telnetd_main(int argc, char **argv)
/*bb_error_msg("listening for connections");*/ /*bb_error_msg("listening for connections");*/
if (!(opt & OPT_FOREGROUND)) { if (!(opt & OPT_FOREGROUND)) {
/* DAEMON_CHDIR_ROOT was giving inconsistent /* DAEMON_CHDIR_ROOT was giving inconsistent
* behavior with/wthout -F, -i */ * behavior with/without -F, -i */
bb_daemonize_or_rexec(0 /*DAEMON_CHDIR_ROOT*/, argv); bb_daemonize_or_rexec(0 /*DAEMON_CHDIR_ROOT*/, argv);
} }
} }