summaryrefslogtreecommitdiff
path: root/linux/openzaurus-pxa-2.4.18-rmk7-pxa3-embedix20031107/initsh.patch
blob: a67263119432b747e3ffba9bfbbc19a39b9a1a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- linux/init/main.c	2002-02-25 13:38:13.000000000 -0600
+++ linux.new/init/main.c	2003-03-16 11:49:45.000000000 -0600
@@ -830,8 +830,10 @@
 	 * trying to recover a really broken machine.
 	 */
 
-	if (execute_command)
+	if (execute_command) {
+		argv_init[0] = execute_command; 
 		execve(execute_command,argv_init,envp_init);
+	}
 	execve("/sbin/init",argv_init,envp_init);
 	execve("/etc/init",argv_init,envp_init);
 	execve("/bin/init",argv_init,envp_init);