From 04357720971399da6bfbb1602410a4b3b424cfa6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 25 Feb 2011 11:21:12 +0100 Subject: [PATCH] Fix chdir(2) path in previous. --- lib/fexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)