[Toybox] [PATCH] xchdir: show the specific failure.

enh enh at google.com
Tue Jan 8 11:52:51 PST 2019


---
 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xchdir-show-the-specific-failure.patch
Type: text/x-patch
Size: 603 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190108/cf66176e/attachment-0002.bin>


More information about the Toybox mailing list