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

This commit is contained in:
Joris Vink 2018-08-13 09:53:38 +02:00
parent 6ef8d59f7d
commit cf92097bc2
1 changed files with 1 additions and 1 deletions

View File

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