*: tidy up usage of char **environ

This commit is contained in:
Denis Vlasenko
2008-01-28 22:45:43 +00:00
parent 0effc2410b
commit 847fa779af
11 changed files with 12 additions and 17 deletions

View File

@@ -279,7 +279,7 @@ static unsigned custom(struct svdir *s, char c)
warn_cannot("setup stdout for control/?");
prog[0] = a;
prog[1] = NULL;
execve(a, prog, environ);
execv(a, prog);
fatal_cannot("run control/?");
}
while (safe_waitpid(pid, &w, 0) == -1) {

View File

@@ -252,7 +252,7 @@ static unsigned processorstart(struct logdir *ld)
prog[1] = (char*)"-c";
prog[2] = ld->processor;
prog[3] = NULL;
execve("/bin/sh", prog, environ);
execv("/bin/sh", prog);
bb_perror_msg_and_die(FATAL"cannot %s processor %s", "run", ld->name);
}
ld->ppid = pid;