diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-10 00:24:50 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-10 00:24:50 +0000 |
commit | 62a6983a818ce701b924f84bf23716c4fbff170a (patch) | |
tree | d32b42bd0212bcdd1feba0e1b896932142766931 | |
parent | 886bb0df664205fc1098f34092fb5f716c225d06 (diff) | |
download | busybox-w32-62a6983a818ce701b924f84bf23716c4fbff170a.tar.gz busybox-w32-62a6983a818ce701b924f84bf23716c4fbff170a.tar.bz2 busybox-w32-62a6983a818ce701b924f84bf23716c4fbff170a.zip |
execute "safe applets" exev if not standalone shell
(patch by "Eric Spakman" <E.Spakman@inter.nl.net>)
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 6d96bce5a..10217fe2f 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -3717,7 +3717,7 @@ shellexec(char **argv, const char *path, int idx) | |||
3717 | 3717 | ||
3718 | clearredir(1); | 3718 | clearredir(1); |
3719 | envp = environment(); | 3719 | envp = environment(); |
3720 | if (strchr(argv[0], '/') | 3720 | if (strchr(argv[0], '/') || is_safe_applet(argv[0]) |
3721 | #ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL | 3721 | #ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL |
3722 | || find_applet_by_name(argv[0]) | 3722 | || find_applet_by_name(argv[0]) |
3723 | #endif | 3723 | #endif |