git: sh: Properly show "Not a directory" error in cd builtin.

Peter Avalos pavalos at crater.dragonflybsd.org
Sun Feb 5 13:05:27 PST 2012


commit 2b271b9bd2c4b4c7b94e1d246aebde69a6e37819
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date:   Sun Feb 5 11:44:29 2012 -0800

    sh: Properly show "Not a directory" error in cd builtin.
    
    The errno message display added in 72cbf4010 did not take attempting to
    cd to a non-directory or something that cannot be stat()ed into account.
    
    Obtained-from:  FreeBSD 230095

Summary of changes:
 bin/sh/cd.c                            |    9 +++++++--
 tools/regression/bin/sh/builtins/cd8.0 |   26 ++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 2 deletions(-)
 create mode 100644 tools/regression/bin/sh/builtins/cd8.0

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2b271b9bd2c4b4c7b94e1d246aebde69a6e37819


-- 
DragonFly BSD source repository





More information about the Commits mailing list