]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r230095: sh: Properly show "Not a directory" error in cd builtin.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 27 Jan 2012 20:53:37 +0000 (20:53 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 27 Jan 2012 20:53:37 +0000 (20:53 +0000)
commitb1f7b8b0ee0ff7c75cfb0332688590b4d0b58718
tree646c2a0e8eaa699329e7b24e7f5a559753fe729c
parent0a884e180a4b73ece983dda14d2651f1394f79d8
MFC r230095: sh: Properly show "Not a directory" error in cd builtin.

The errno message display added in r222292 did not take attempting to
cd to a non-directory or something that cannot be stat()ed into account.

PR: bin/164070

git-svn-id: svn://svn.freebsd.org/base/stable/9@230624 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/cd.c
tools/regression/bin/sh/builtins/cd8.0 [new file with mode: 0644]