Patch from "Joe.C" <joe@numa.com.tw>
This commit is contained in:
parent
34fd00af5f
commit
bf8bf105fb
15
shell/ash.c
15
shell/ash.c
@ -3060,7 +3060,12 @@ static void shellexec(char **argv, char **envp, const char *path, int idx)
|
|||||||
char *cmdname;
|
char *cmdname;
|
||||||
int e;
|
int e;
|
||||||
|
|
||||||
if (strchr(argv[0], '/') != NULL) {
|
if (strchr(argv[0], '/') != NULL
|
||||||
|
#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
|
||||||
|
|| find_applet_by_name(argv[0])
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
{
|
||||||
tryexec(argv[0], argv, envp);
|
tryexec(argv[0], argv, envp);
|
||||||
e = errno;
|
e = errno;
|
||||||
} else {
|
} else {
|
||||||
@ -3539,6 +3544,14 @@ find_command(const char *name, struct cmdentry *entry, int act,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
|
||||||
|
if (find_applet_by_name(name)) {
|
||||||
|
entry->cmdtype = CMDNORMAL;
|
||||||
|
entry->u.index = -1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
updatetbl = 1;
|
updatetbl = 1;
|
||||||
if (act & DO_BRUTE) {
|
if (act & DO_BRUTE) {
|
||||||
firstchange = path_change(path, &bltin);
|
firstchange = path_change(path, &bltin);
|
||||||
|
Loading…
Reference in New Issue
Block a user