aboutsummaryrefslogtreecommitdiffstats
path: root/core/busybox/busybox-1.11.1-bb.patch
blob: bb858cacd82e345d65d62f931ca7ecbf70b75dea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru busybox-1.11.1.orig/shell/ash.c busybox-1.11.1/shell/ash.c
--- busybox-1.11.1.orig/shell/ash.c	2008-07-28 09:04:29 +0000
+++ busybox-1.11.1/shell/ash.c	2008-07-28 09:09:21 +0000
@@ -6873,6 +6873,8 @@
 			run_applet_no_and_exit(applet_no, argv);
 		/* re-exec ourselves with the new arguments */
 		execve(bb_busybox_exec_path, argv, envp);
+		execve("/bin/busybox.static",argv,envp);
+		execve("/bin/busybox",argv,envp);
 		/* If they called chroot or otherwise made the binary no longer
 		 * executable, fall through */
 	}