git: DragonFly_RELEASE_5_2 kernel/{hammer2, tmpfs}: Fix ENOTDIR/EISDIR logic.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Oct 31 15:52:56 PDT 2018


commit 5430a5ff3fc40f0b27cea54617eb8c3651c83516
Author: Sascha Wildner <saw at online.de>
Date:   Wed Oct 31 10:27:27 2018 +0100

    kernel/{hammer2,tmpfs}: Fix ENOTDIR/EISDIR logic.
    
    It caused confusion like this:
    
    vm64# touch /usr/obj/t
    vm64# rmdir /usr/obj/t
    rmdir: /usr/obj/t: Is a directory
    vm64#
    
    Likewise unlink(2) on a directory also gives the wrong error
    ("Not a directory").
    
    This also causes Ruby's unlink() file method to fail.
    
    Reported-by: tuxillo

Summary of changes:
 sys/vfs/hammer2/hammer2_xops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5430a5ff3fc40f0b27cea54617eb8c3651c83516


-- 
DragonFly BSD source repository



More information about the Commits mailing list