summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/switch_root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index bcc4443..1ba3740 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]);
}