aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-30 15:55:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-30 15:55:16 +0000
commit064121ee95268b9968d9b9bc54e6008f96ac91ae (patch)
tree20dea3ebe6d010bc61e77c7250fef584a6760089
parentci: codespell: ignore ‘doas’ (diff)
slave: log _which_ CWD we failed to change to
-rw-r--r--slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slave.c b/slave.c
index 9cf49cfa..b826411f 100644
--- a/slave.c
+++ b/slave.c
@@ -269,7 +269,7 @@ slave_spawn(int ptmx, int argc, const char *cwd, char *const *argv,
if (chdir(cwd) < 0) {
const int errno_copy = errno;
- LOG_ERRNO("failed to change working directory");
+ LOG_ERRNO("failed to change working directory to %s", cwd);
(void)!write(fork_pipe[1], &errno_copy, sizeof(errno_copy));
_exit(errno_copy);
}