← Commit list

32176ccec

Denys Vlasenko
Denys Vlasenko
2011-03-21
FAILED Duration: 221s

Subject

init: fix a case where execv's 1st arg was wrong

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

init/init.c+1 -0
@@ -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;