From: Denis Vlasenko Date: Wed, 10 Jan 2007 00:24:50 +0000 (-0000) Subject: execute "safe applets" exev if not standalone shell X-Git-Tag: 1_4_0~58 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62a6983a818ce701b924f84bf23716c4fbff170a;p=oweals%2Fbusybox.git execute "safe applets" exev if not standalone shell (patch by "Eric Spakman" ) --- 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) clearredir(1); envp = environment(); - if (strchr(argv[0], '/') + if (strchr(argv[0], '/') || is_safe_applet(argv[0]) #ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL || find_applet_by_name(argv[0]) #endif