svn commit: trunk/busybox/shell

vda at busybox.net vda at busybox.net
Wed Jan 10 00:24:51 UTC 2007


Author: vda
Date: 2007-01-09 16:24:50 -0800 (Tue, 09 Jan 2007)
New Revision: 17216

Log:
execute "safe applets" exev if not standalone shell
(patch by "Eric Spakman" <E.Spakman at inter.nl.net>)


Modified:
   trunk/busybox/shell/ash.c


Changeset:
Modified: trunk/busybox/shell/ash.c
===================================================================
--- trunk/busybox/shell/ash.c	2007-01-09 23:48:46 UTC (rev 17215)
+++ trunk/busybox/shell/ash.c	2007-01-10 00:24:50 UTC (rev 17216)
@@ -3717,7 +3717,7 @@
 
 	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




More information about the busybox-cvs mailing list