View Issue Details

IDProjectCategoryView StatusLast Update
00017291003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:07
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeClarification Requested
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionmkdir()
Page Number1317
Line Number43825-6
Interp Status---
Final Accepted Text
Summary0001729: mkdir() ENOENT and ENOTDIR overlap
DescriptionFor a call such as:
mkdir("regular_file/foo", mode)
the descriptions of ENOENT and ENOTDIR on the mkdir() page both apply:
[ENOENT]
A component of the path prefix specified by path does not name an existing directory ...
[ENOTDIR]
A component of the path prefix names an existing file that is neither a directory nor a symbolic link to a directory.
For other file creation functions, e.g. open(), mkfifo(), and fopen(), ENOENT uses "existing file" instead of "existing directory", avoiding this problem.

Also, strictly speaking path does not specify a path prefix (it specifies a complete pathname). Again, other pages don't have this problem, as they refer to "the path prefix of path".
Desired ActionChange:
A component of the path prefix specified by path does not name an existing directory
to:
A component of the path prefix of path does not name an existing file

Tagsapplied_after_i8d3, tc3-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-05-18 09:30 geoffclare New Issue
2023-05-18 09:30 geoffclare Name => Geoff Clare
2023-05-18 09:30 geoffclare Organization => The Open Group
2023-05-18 09:30 geoffclare Section => mkdir()
2023-05-18 09:30 geoffclare Page Number => 1317
2023-05-18 09:30 geoffclare Line Number => 43825-6
2023-05-18 09:30 geoffclare Interp Status => ---
2023-07-31 15:46 Don Cragun Status New => Resolved
2023-07-31 15:46 Don Cragun Resolution Open => Accepted
2023-07-31 15:46 Don Cragun Tag Attached: tc3-2008
2023-08-17 10:58 geoffclare Status Resolved => Applied
2023-08-17 10:58 geoffclare Tag Attached: applied_after_i8d3
2024-06-11 09:07 agadmin Status Applied => Closed