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

Sascha Wildner swildner at
Wed Oct 31 15:52:53 PDT 2018

commit e6d7f4a9ef238b92f51ce7670c53b2a6d465759b
Author: Sascha Wildner <saw at>
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
    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(-)

DragonFly BSD source repository

More information about the Commits mailing list