[git commit] ash: when cd fails, say why

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 23 12:48:25 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=687aac056d08ef7c0eafb3d610d3dcdce35b635a
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

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

diff --git a/shell/ash.c b/shell/ash.c
index a67a453..60bcd1b 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)


More information about the busybox-cvs mailing list