Commit aa01a932 authored by godog's avatar godog
Browse files

pass environ to execve

parent e593cde4
......@@ -391,7 +391,7 @@ static int child(void *arg) {
log_println_errno("close failed");
return -1;
}
if (execve(config->argv0, config->argv, NULL)) {
if (execve(config->argv0, config->argv, environ)) {
log_printf_errno("execve(%s) failed!", config->argv0);
return -1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment