projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e55b0
)
init: fix a case where execv's 1st arg was wrong
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 21 Mar 2011 04:07:43 +0000
(
05:07
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 21 Mar 2011 04:07:43 +0000
(
05:07
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
init/init.c
patch
|
blob
|
history
diff --git
a/init/init.c
b/init/init.c
index 586e34a18eb448d4b6cef4789e7614ee88138ce6..ff9dc06a4cb376f55ee8302c425adc6aa37c2e47 100644
(file)
--- a/
init/init.c
+++ b/
init/init.c
@@
-414,6
+414,7
@@
static void init_exec(const char *command)
char *word, *next;
int i = 0;
next = strcpy(buf, command - dash); /* command including "-" */
+ command = next + dash;
while ((word = strsep(&next, " \t")) != NULL) {
if (*word != '\0') { /* not two spaces/tabs together? */
cmd[i] = word;