Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortof
authorEric Andersen <andersen@codepoet.org>
Wed, 7 Apr 2004 09:34:27 +0000 (09:34 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 7 Apr 2004 09:34:27 +0000 (09:34 -0000)
stupid and didn't work properly anyways.

debian/config-static
debian/config-udeb
debian/config-udeb-linux
shell/Config.in
shell/ash.c
shell/hush.c
shell/lash.c
shell/msh.c

index 5114da6b1291cdd659abf17d0d95a4645f40faaa..0353546838a18e3c5c91e656956887e10711be5d 100644 (file)
@@ -437,7 +437,6 @@ CONFIG_FEATURE_COMMAND_TAB_COMPLETION=y
 CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION=y
 CONFIG_FEATURE_COMMAND_HISTORY=15
 CONFIG_FEATURE_SH_STANDALONE_SHELL=y
-CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN=y
 CONFIG_FEATURE_SH_FANCY_PROMPT=y
 # CONFIG_FEATURE_SH_EXTRA_QUIET is not set
 
index 3cb612f7e757e425263f5cb7f7c891bf01e29f07..7359abcfe2ebd4236daed08f706158e8e8423f76 100644 (file)
@@ -359,7 +359,6 @@ CONFIG_FEATURE_COMMAND_TAB_COMPLETION=y
 # CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION is not set
 CONFIG_FEATURE_COMMAND_HISTORY=15
 CONFIG_FEATURE_SH_STANDALONE_SHELL=y
-# CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN is not set
 CONFIG_FEATURE_SH_FANCY_PROMPT=y
 # CONFIG_FEATURE_SH_EXTRA_QUIET is not set
 
index be4e9fb48285f603307381e3ea1679f6caae78cb..b33fb22b029f5c890946b2191cfa2ffd65dcc644 100644 (file)
@@ -368,7 +368,6 @@ CONFIG_FEATURE_COMMAND_TAB_COMPLETION=y
 # CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION is not set
 CONFIG_FEATURE_COMMAND_HISTORY=15
 CONFIG_FEATURE_SH_STANDALONE_SHELL=y
-# CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN is not set
 CONFIG_FEATURE_SH_FANCY_PROMPT=y
 # CONFIG_FEATURE_SH_EXTRA_QUIET is not set
 
index 34baaa45cadeccdbbbaf9225d9f3b378961e4538..b064ed41ba07e1276e1c67addfef43a65e1ccd2d 100644 (file)
@@ -160,16 +160,14 @@ config CONFIG_FEATURE_SH_STANDALONE_SHELL
        default n
        depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
        help
-         Have all the busybox commands built into the shell, creating
-         a standalone shell.
-
-config CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
-       bool "Standalone shell -- applets always win"
-       default n
-       depends on CONFIG_FEATURE_SH_STANDALONE_SHELL
-       help
-         Use a command builtin to the shell over one with the same name,
-         that may be on the system.
+         This option causes the selected busybox shell to use busybox applets
+         in preference to executables in the PATH whenever possible.  For
+         example, entering the command 'ifconfig' into the shell would cause
+         busybox to use the ifconfig busybox applet.  Specifying the fully
+         qualified executable name, such as '/sbin/ifconfig' will still
+         execute the /sbin/ifconfig executable on the filesystem.  This option
+         is generally used when creating a staticly linked version of busybox
+         for use as a rescue shell, in the event that you screw up your system.
 
 config CONFIG_FEATURE_COMMAND_EDITING
        bool "command line editing"
index 5ebc8acedd6b6f7599b353a602021429715a8e14..1a0e0aa6e7316d68c28cb30bf45465bee43fc0c7 100644 (file)
@@ -3717,15 +3717,9 @@ tryexec(char *cmd, char **argv, char **envp)
        int flg_bb = 0;
        char *name = cmd;
 
-#ifdef CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
-       name = bb_get_last_path_component(name);
-       if(find_applet_by_name(name) != NULL)
-               flg_bb = 1;
-#else
        if(strchr(name, '/') == NULL && find_applet_by_name(name) != NULL) {
                flg_bb = 1;
        }
-#endif
        if(flg_bb) {
                char **ap;
                char **new;
index 0a32099c7c44cdf62229f9c4c8cfcfc4abd5ae00..ad5ddf0d561c7cfa6d1aacc43bd203f5bf437f61 100644 (file)
@@ -1124,18 +1124,6 @@ static void pseudo_exec(struct child_prog *child)
                        char** argv_l=child->argv;
                        char *name = child->argv[0];
 
-#ifdef CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
-                       /* Following discussions from November 2000 on the busybox mailing
-                        * list, the default configuration, (without
-                        * bb_get_last_path_component()) lets the user force use of an
-                        * external command by specifying the full (with slashes) filename.
-                        * If you enable CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN, then applets
-                        * _aways_ override external commands, so if you want to run
-                        * /bin/cat, it will use BusyBox cat even if /bin/cat exists on the
-                        * filesystem and is _not_ busybox.  Some systems may want this,
-                        * most do not.  */
-                       name = bb_get_last_path_component(name);
-#endif
                        /* Count argc for use in a second... */
                        for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++);
                        optind = 1;
index e20c2a20ee03e908c78164a67931e4926c5b311a..b46cee80713ee61848184776155c905ead47974c 100644 (file)
@@ -1275,15 +1275,6 @@ static int pseudo_exec(struct child_prog *child)
         */
        name = child->argv[0];
 
-#ifdef CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
-       /* If you enable CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN, then
-        * if you run /bin/cat, it will use BusyBox cat even if
-        * /bin/cat exists on the filesystem and is _not_ busybox.
-        * Some systems want this, others do not.  Choose wisely.  :-)
-        */
-       name = bb_get_last_path_component(name);
-#endif
-
        {
            char** argv_l=child->argv;
            int argc_l;
index e7059507a9b1bd003cc234ae88e126bb89e012f2..5dc0b2b5143c27c7a96795dbb8532a6091a34767 100644 (file)
@@ -2836,9 +2836,6 @@ char *c, **v, **envp;
 
 #ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
        char *name = c;
-#ifdef CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
-       name = bb_get_last_path_component(name);
-#endif
        optind = 1;
        if (find_applet_by_name(name)) {
                /* We have to exec here since we vforked.  Running