aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-01-08 11:49:44 -0800
committerRob Landley <rob@landley.net>2019-01-08 19:14:35 -0600
commit441bb479dad25bfad976689006130d6905b4b7f7 (patch)
tree9916711e36eb1bd561c397005b9c02853f8927e7 /lib
parent60dea9ec5208b161d7720b6d6fb4e27219252661 (diff)
downloadtoybox-441bb479dad25bfad976689006130d6905b4b7f7.tar.gz
xchdir: show the specific failure.
Diffstat (limited to 'lib')
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
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)