View Issue Details

IDProjectCategoryView StatusLast Update
00016051003.1(2016/18)/Issue7+TC2System Interfacespublic2024-06-11 09:07
Reportersteffen Assigned To 
PrioritynormalSeverityEditorialTypeOmission
Status ClosedResolutionAccepted As Marked 
Namesteffen
Organization
User Reference
Sectionbind
Page Number626
Line Number21642ff
Interp Status---
Final Accepted Text0001605:0005967
Summary0001605: bind: AF_UNIX: extend EADDRINUSE description beyond "symbolic link"
Descriptionbind(2) fails for AF_UNIX sockets if the desired name (path) already exists, regardless of the file type.
I'd presume the symbolic link case is already mentioned due to "following is forbidden" policies.
Desired ActionOn page 626, line 21642ff change

If the address family of the socket is AF_UNIX and the pathname in address names a symbolic link, bind( ) shall fail and set errno to [EADDRINUSE].

to

If the address family of the socket is AF_UNIX and the pathname in address names an existing file, including a symbolic link, bind( ) shall fail and set errno to [EADDRINUSE].
Tagstc3-2008

Activities

geoffclare

2022-09-13 15:56

manager   bugnote:0005967

It seems odd to have this error specified in DESCRIPTION instead of ERRORS.

I think the intention was that the existing generic EADDRINUSE entry in ERRORS ("The specified address is already in use") covered most file-exists cases for AF_UNIX and only the symbolic link case needed special mention.

A better solution would be to spell out how the two relate. I'd suggest changing:
If the address family of the socket is AF_UNIX and the pathname in address names a symbolic link, bind() shall fail and set errno to [EADDRINUSE].
to:
If the address family of the socket is AF_UNIX and the pathname in address names an existing file, including a symbolic link, bind() shall treat the address as already in use; see ERRORS below.

steffen

2022-09-13 20:28

reporter   bugnote:0005968

Yes, much smoother, much better. Thank you.

Issue History

Date Modified Username Field Change
2022-09-13 15:34 steffen New Issue
2022-09-13 15:34 steffen Name => steffen
2022-09-13 15:34 steffen Section => bind
2022-09-13 15:34 steffen Page Number => 626
2022-09-13 15:34 steffen Line Number => 21642ff
2022-09-13 15:56 geoffclare Note Added: 0005967
2022-09-13 20:28 steffen Note Added: 0005968
2022-10-20 16:12 geoffclare Interp Status => ---
2022-10-20 16:12 geoffclare Final Accepted Text => 0001605:0005967
2022-10-20 16:12 geoffclare Status New => Resolved
2022-10-20 16:12 geoffclare Resolution Open => Accepted As Marked
2022-10-20 16:13 geoffclare Tag Attached: tc3-2008
2022-11-01 15:09 geoffclare Status Resolved => Applied
2024-06-11 09:07 agadmin Status Applied => Closed