git: kernel: improve open(2) error handling

Daniel Fojt deef at
Tue Jun 16 03:23:51 PDT 2020

commit 9f86c598efab81d1af92ee9a05c182532b581052
Author: Daniel Fojt <df at>
Date:   Tue Jun 16 07:23:19 2020 +0200

    kernel: improve open(2) error handling
    When trying to open a file with O_CREAT and O_EXCL flags while the file
    exists, disregard the file permissions and always return EEXIST as
    described in manpage and required by the standard.

Summary of changes:
 sys/kern/vfs_vnops.c | 6 ++++++
 1 file changed, 6 insertions(+)

DragonFly BSD source repository

More information about the Commits mailing list