Changeset 904 in MondoRescue for trunk/mindi-busybox/shell/msh.c


Ignore:
Timestamp:
Oct 25, 2006, 1:51:57 AM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r890:902 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi-busybox/shell/msh.c

    r821 r904  
    32153215    REGISTER char *sp, *tp;
    32163216    int eacces = 0, asis = 0;
    3217 
    3218 #ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
    32193217    char *name = c;
    32203218
    3221     optind = 1;
    3222     if (find_applet_by_name(name)) {
    3223         /* We have to exec here since we vforked.  Running
    3224          * run_applet_by_name() won't work and bad things
    3225          * will happen. */
    3226         execve(CONFIG_BUSYBOX_EXEC_PATH, v, envp);
    3227     }
    3228 #endif
     3219    if (ENABLE_FEATURE_SH_STANDALONE_SHELL) {
     3220        optind = 1;
     3221        if (find_applet_by_name(name)) {
     3222            /* We have to exec here since we vforked.  Running
     3223             * run_applet_by_name() won't work and bad things
     3224             * will happen. */
     3225            execve(CONFIG_BUSYBOX_EXEC_PATH, v, envp);
     3226        }
     3227    }
    32293228
    32303229    DBGPRINTF(("REXECVE: c=%p, v=%p, envp=%p\n", c, v, envp));
Note: See TracChangeset for help on using the changeset viewer.