The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1729 ====================================================================== Reported By: geoffclare Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1729 Category: System Interfaces Type: Clarification Requested Severity: Objection Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section: mkdir() Page Number: 1317 Line Number: 43825-6 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2023-05-18 09:30 UTC Last Modified: 2023-05-18 09:30 UTC ====================================================================== Summary: mkdir() ENOENT and ENOTDIR overlap Description: For a call such as:<blockquote>mkdir("regular_file/foo", mode)</blockquote>the descriptions of ENOENT and ENOTDIR on the mkdir() page both apply:<blockquote>[ENOENT]<blockquote>A component of the path prefix specified by <i>path</i> does not name an existing directory ...</blockquote>[ENOTDIR]<blockquote>A component of the path prefix names an existing file that is neither a directory nor a symbolic link to a directory.</blockquote></blockquote>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 <i>path</i> 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 <i>path</i>". Desired Action: Change:<blockquote>A component of the path prefix specified by <i>path</i> does not name an existing directory</blockquote>to:<blockquote>A component of the path prefix of <i>path</i> does not name an existing file</blockquote> ====================================================================== 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 => --- ======================================================================
