git: kernel: improve open(2) error handling

Daniel Fojt deef at crater.dragonflybsd.org
Tue Jun 16 03:23:51 PDT 2020


commit 9f86c598efab81d1af92ee9a05c182532b581052
Author: Daniel Fojt <df at neosystem.org>
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.
    
    Issue: https://bugs.dragonflybsd.org/issues/2953

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f86c598efab81d1af92ee9a05c182532b581052


-- 
DragonFly BSD source repository



More information about the Commits mailing list