From 441bb479dad25bfad976689006130d6905b4b7f7 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 8 Jan 2019 11:49:44 -0800 Subject: xchdir: show the specific failure. --- lib/xwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/xwrap.c b/lib/xwrap.c index 7e602d5f..04a4cae3 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -629,7 +629,7 @@ error: void xchdir(char *path) { - if (chdir(path)) error_exit("chdir '%s'", path); + if (chdir(path)) perror_exit("chdir '%s'", path); } void xchroot(char *path) -- cgit v1.2.3