CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/04/08 06:08:25

Modified files:
        sys/kern       : vfs_vnops.c 
        lib/libc/sys   : open.2 

Log message:
Error with EISDIR when calling open(2) with O_CREAT when the
last component of the path is an existing directory and O_DIRECTORY
is not specified.

This is required by recent versions of POSIX.  We previously did
not return an error.

Flagged by Sortix os-test.

committing on behalf of daniel@, partly based on FreeBSD changes
ok guenther@ jsg@ deraadt@

Reply via email to