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

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


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

commit ad6a7666b6711b108da1dd67ef0d65d44301577b
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
    (cherry picked from commit 2b271b9bd2c4b4c7b94e1d246aebde69a6e37819)

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/ad6a7666b6711b108da1dd67ef0d65d44301577b


-- 
DragonFly BSD source repository



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