fix: execve params

This commit is contained in:
dragonmuffin 2024-08-20 21:33:56 +05:00
parent e528e59619
commit 6c3b64ed39

View file

@ -71,7 +71,7 @@ static int nsrun(void* arg) {
char* env[]={
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PWD=/",
"NULL",
NULL,
};
if (execve(cmd,argv,env) == -1) die("failed to exec,%m");
return 1;