svn commit: trunk/busybox/util-linux

landley at busybox.net landley at busybox.net
Tue Feb 14 07:33:47 UTC 2006


Author: landley
Date: 2006-02-13 23:33:45 -0800 (Mon, 13 Feb 2006)
New Revision: 14007

Log:
Fix off by one error.  (I know I had a reason for doing that, but I have _no_
idea what it was...)


Modified:
   trunk/busybox/util-linux/switch_root.c


Changeset:
Modified: trunk/busybox/util-linux/switch_root.c
===================================================================
--- trunk/busybox/util-linux/switch_root.c	2006-02-14 05:43:18 UTC (rev 14006)
+++ trunk/busybox/util-linux/switch_root.c	2006-02-14 07:33:45 UTC (rev 14007)
@@ -118,6 +118,6 @@
 	}
 
 	// Exec real init.  (This is why we must be pid 1.)
-	execv(argv[optind],argv+optind+1);
+	execv(argv[optind],argv+optind);
 	bb_error_msg_and_die("Bad init '%s'",argv[optind]);
 }




More information about the busybox-cvs mailing list