diff --git a/lib/fexec.c b/lib/fexec.c index e29d66bc..cd309c16 100644 --- a/lib/fexec.c +++ b/lib/fexec.c @@ -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)