fix: execve params
This commit is contained in:
parent
e528e59619
commit
6c3b64ed39
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ static int nsrun(void* arg) {
|
||||||
char* env[]={
|
char* env[]={
|
||||||
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||||||
"PWD=/",
|
"PWD=/",
|
||||||
"NULL",
|
NULL,
|
||||||
};
|
};
|
||||||
if (execve(cmd,argv,env) == -1) die("failed to exec,%m");
|
if (execve(cmd,argv,env) == -1) die("failed to exec,%m");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue