bzip2: make -s equivalent to -2 (compatible with standard bzip2)
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 16 Oct 2007 10:47:27 +0000 (10:47 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 16 Oct 2007 10:47:27 +0000 (10:47 -0000)
telnetd: typo fix in comment

archival/bzip2.c
networking/telnetd.c

index e9a69c458f05207ae558fb5a85aae612a4bb736a..c750a056fac5c96a2aa6d5e279ce6b5926cfb292 100644 (file)
@@ -182,6 +182,7 @@ int bzip2_main(int argc, char **argv)
         * --best        alias for -9
         */
 
+       opt_complementary = "s2"; /* -s means -2 (compatibility) */
        /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */
        opt = getopt32(argv, "cfv" USE_BUNZIP2("d") "123456789qzs" );
 #if ENABLE_BUNZIP2 /* bunzip2_main may not be visible... */
index 96620d949f8434c833c5055aa7f87317fd65dc57..eb3701133b1171af50085acc00baccd3477708aa 100644 (file)
@@ -415,7 +415,7 @@ int telnetd_main(int argc, char **argv)
                /*bb_error_msg("listening for connections");*/
                if (!(opt & OPT_FOREGROUND)) {
                        /* 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);
                }
        }