Fix off by one error. (I know I had a reason for doing that, but I have _no_
authorRob Landley <rob@landley.net>
Tue, 14 Feb 2006 07:33:45 +0000 (07:33 -0000)
committerRob Landley <rob@landley.net>
Tue, 14 Feb 2006 07:33:45 +0000 (07:33 -0000)
idea what it was...)

util-linux/switch_root.c

index bcc4443ab32d48aee057b7cf27ea7cbadd1aee1c..1ba374076c200402285f5d9df71f437896bacb9a 100644 (file)
@@ -118,6 +118,6 @@ int switch_root_main(int argc, char *argv[])
        }
 
        // 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]);
 }