git: Revert "kern: Fix write-open "." or ".." to return EISDIR instead of EEXIST"

Aaron LI aly at crater.dragonflybsd.org
Mon Oct 12 02:02:49 PDT 2026


commit 166068f391a717c3719fe5f88f76f7aeacfbb40e
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Oct 12 12:53:17 2026 +0800

    Revert "kern: Fix write-open "." or ".." to return EISDIR instead of EEXIST"
    
    This reverts commit d5838e7c8154895375e3f278fa0c03a2b913132c.
    
    That change broke mkdir() and maybe others, causing them to return
    the wrong EISDIR instead of EEXIST. For example:
    
    ```
    % mkdir .
    mkdir: .: Is a directory
    ```
    
    We'll need to fix the original issue in another way.
    
    Reported-by: swildner, mneumann

Summary of changes:
 sys/kern/vfs_nlookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/166068f391a717c3719fe5f88f76f7aeacfbb40e


-- 
DragonFly BSD source repository


More information about the Commits mailing list