kore

a fork of the worlds most advanced web framework
Log | Files | Refs | README | LICENSE

commit cf92097bc21188136c9e5581b6f4c8f33418faf1
parent 6ef8d59f7d370780aea4fe1a955796bc6913afaf
Author: Joris Vink <joris@coders.se>
Date:   Mon, 13 Aug 2018 09:53:38 +0200

log what dir we can't chdir() into.

Diffstat:
Msrc/worker.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/worker.c b/src/worker.c @@ -250,7 +250,7 @@ kore_worker_privdrop(const char *runas, const char *root) fatal("cannot chdir(\"/\"): %s", errno_s); } else { if (chdir(root) == -1) - fatal("cannot chdir(\"/\"): %s", errno_s); + fatal("cannot chdir(\"%s\"): %s", root, errno_s); } if (getrlimit(RLIMIT_NOFILE, &rl) == -1) {