View Issue Details

IDProjectCategoryView StatusLast Update
00019791003.1(2024)/Issue8System Interfacespublic2026-04-05 05:13
Reporterphilip-guenther Assigned To 
PrioritynormalSeverityEditorialTypeClarification Requested
Status NewResolutionOpen 
NamePhilip Guenther
OrganizationOpenBSD
User Reference
Sectionopen
Page Number~1515-1518
Line Number~50743-50874
Interp Status
Final Accepted Text
Summary0001979: conflicting specification for open("existing-directory", O_RDONLY | O_CREAT, 0644)
DescriptionThe description of open() explains O_CREAT with a paragraph that starts:

O_CREAT If the file exists, this flag has no effect except as noted under O_EXCL below. <...>

'file' is of course the XBD 'file' which includes directories, devices, etc. So, open(O_RDONLY|O_CREAT) naming a directory that exists should behave the same as open(O_RDONLY) of that same path.

Then later the ERRORS section contradicts that:

[EISDIR] The named file is a directory and oflag includes O_WRONLY or O_RDWR, or
                  includes O_CREAT without O_DIRECTORY, or <...>
Desired ActionAdjust the description of O_CREAT to remove the contradiction.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-04-05 05:13 philip-guenther New Issue