Fix chdir(2) path in previous.
This commit is contained in:
parent
ce24ff488c
commit
0435772097
@ -68,7 +68,7 @@ pfcexec(const char *path, const char *file, const char **argv)
|
||||
if (chroot(".") == -1) {
|
||||
if (errno != EPERM)
|
||||
_exit(127);
|
||||
if (chdir(path) == -1)
|
||||
if (chdir(".") == -1)
|
||||
_exit(127);
|
||||
} else {
|
||||
if (chdir("/") == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user