From 064121ee95268b9968d9b9bc54e6008f96ac91ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 30 Aug 2021 17:55:16 +0200 Subject: [PATCH] slave: log _which_ CWD we failed to change to --- slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }