DragonFly BSD
DragonFly commits List (threaded) for 2012-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos <pavalos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Feb 2012 13:05:27 -0800 (PST)

commit 2b271b9bd2c4b4c7b94e1d246aebde69a6e37819
Author: Peter Avalos <pavalos@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]