From d05981eaf18655f30a1b8cc1cd2c3984436ac227 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 14 Feb 2006 07:33:45 +0000 Subject: Fix off by one error. (I know I had a reason for doing that, but I have _no_ idea what it was...) --- util-linux/switch_root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index bcc4443ab..1ba374076 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c @@ -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]); } -- cgit v1.2.3