The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1829 ====================================================================== Reported By: geoffclare Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1829 Category: System Interfaces Type: Error Severity: Objection Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section: symlink() Page Number: 2095 Line Number: 67093 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-05-02 16:48 UTC Last Modified: 2024-05-02 16:48 UTC ====================================================================== Summary: symlink() and terminating null bytes Description: The description of symlink() says the created symbolic link contains "the string pointed to by path1". Since a string by definition has a terminating null byte, by a strict reading this implies the null is included in the symbolic link, but that's not the intended requirement, nor how systems behave.
Desired Action: On page 2095 line 67093 section symlink(), change:<blockquote>The <i>symlink</i>() function shall create a symbolic link called <i>path2</i> that contains the string pointed to by <i>path1</i> (<i>path2</i> is the name of the symbolic link created, <i>path1</i> is the string contained in the symbolic link).</blockquote>to:<blockquote>The <i>symlink</i>() function shall create a symbolic link called <i>path2</i> that contains the string pointed to by <i>path1</i>, excluding the terminating null byte. (That is, <i>path2</i> specifies the pathname of the symbolic link created; <i>path1</i> specifies the contents of the symbolic link.)</blockquote> ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2024-05-02 16:48 geoffclare New Issue 2024-05-02 16:48 geoffclare Name => Geoff Clare 2024-05-02 16:48 geoffclare Organization => The Open Group 2024-05-02 16:48 geoffclare Section => symlink() 2024-05-02 16:48 geoffclare Page Number => 2095 2024-05-02 16:48 geoffclare Line Number => 67093 2024-05-02 16:48 geoffclare Interp Status => --- ======================================================================