ash: when cd fails, say why
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 22 Aug 2017 20:03:22 +0000 (22:03 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 23 Aug 2017 12:48:25 +0000 (14:48 +0200)
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index a67a453768a2df576985295f4bd17f8283108fa4..60bcd1b0a949ee60a7fade54292aea74f9cb291b 100644 (file)
@@ -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)