execute "safe applets" exev if not standalone shell
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 10 Jan 2007 00:24:50 +0000 (00:24 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 10 Jan 2007 00:24:50 +0000 (00:24 -0000)
(patch by "Eric Spakman" <E.Spakman@inter.nl.net>)

shell/ash.c

index 6d96bce5aefb48288d9449017d6a36f83a07ffde..10217fe2f1e8fd7b76e68719d69debd11cce2d9e 100644 (file)
@@ -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