Fix chdir(2) path in previous.

This commit is contained in:
Juan RP 2011-02-25 11:21:12 +01:00
parent ce24ff488c
commit 0435772097

View File

@ -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)