[PATCH 2/2] ash: when cd fails, say why

Johannes Schindelin johannes.schindelin at gmx.de
Tue Aug 22 20:03:22 UTC 2017


Signed-off-by: Johannes Schindelin <johannes.schindelin at gmx.de>
---
 shell/ash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/ash.c b/shell/ash.c
index a67a45376..60bcd1b0a 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2748,7 +2748,7 @@ cdcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
 	goto docd;
 
  err:
-	ash_msg_and_raise_error("can't cd to %s", dest);
+	ash_msg_and_raise_perror("can't cd to %s", dest);
 	/* NOTREACHED */
  out:
 	if (flags & CD_PRINT)
-- 
2.14.1.windows.1.11.gc06fee21d46.dirty


More information about the busybox mailing list