diff options
author | Rob Landley <rob@landley.net> | 2006-02-14 07:33:45 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-02-14 07:33:45 +0000 |
commit | d05981eaf18655f30a1b8cc1cd2c3984436ac227 (patch) | |
tree | 2ac05967222ad281e0a643bf98933db958d3a727 /util-linux/switch_root.c | |
parent | b2804551a0fafa83d0c5d602761e787f40821519 (diff) | |
download | busybox-w32-d05981eaf18655f30a1b8cc1cd2c3984436ac227.tar.gz busybox-w32-d05981eaf18655f30a1b8cc1cd2c3984436ac227.tar.bz2 busybox-w32-d05981eaf18655f30a1b8cc1cd2c3984436ac227.zip |
Fix off by one error. (I know I had a reason for doing that, but I have _no_
idea what it was...)
Diffstat (limited to 'util-linux/switch_root.c')
-rw-r--r-- | util-linux/switch_root.c | 2 |
1 files changed, 1 insertions, 1 deletions
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[]) | |||
118 | } | 118 | } |
119 | 119 | ||
120 | // Exec real init. (This is why we must be pid 1.) | 120 | // Exec real init. (This is why we must be pid 1.) |
121 | execv(argv[optind],argv+optind+1); | 121 | execv(argv[optind],argv+optind); |
122 | bb_error_msg_and_die("Bad init '%s'",argv[optind]); | 122 | bb_error_msg_and_die("Bad init '%s'",argv[optind]); |
123 | } | 123 | } |