Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Sep 2019 17:10:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 240452] open(2) specifies EISDIR with existing directory for O_CREAT without O_DIRECTORY
Message-ID:  <bug-240452-99@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240452

            Bug ID: 240452
           Summary: open(2) specifies EISDIR with existing directory for
                    O_CREAT without O_DIRECTORY
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: standards@FreeBSD.org
          Reporter: emaste@freebsd.org

>From sortix's POSIX test suite we return success for

  open(tmpdir, O_RDONLY | O_CREAT, 0777)

while we should fail with EISDIR - POSIX now says
(https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html):

[EISDIR]
    The named file is a directory and oflag includes O_WRONLY or O_RDWR, or
includes O_CREAT without O_DIRECTORY.

References:
https://sortix.org/os-test/
https://sortix.org/os-test/io/open-tmpdir-rdonly-creat.c
https://twitter.com/sortiecat/status/1171092062671908866

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240452-99>