---
 lib/xwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.20.1.97.g81188d93c3-goog
From 0e7603956be766c60f75b884573ce0bedde12140 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Tue, 8 Jan 2019 11:49:44 -0800
Subject: [PATCH] xchdir: show the specific failure.

---
 lib/xwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.20.1.97.g81188d93c3-goog

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to