From e6f2eed6f868fbb0db3bbbc76191bf32c404934e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 25 Mar 2022 14:39:14 +0400 Subject: [PATCH] spec: try to improve comment about AF_UNIX path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment refers to the nul-padding of sockaddr_un member sun_path and using an addrlen of sizeof(sockaddr_un). There is not much need to document an old now "broken" behaviour. Signed-off-by: Marc-André Lureau --- doc/dbus-specification.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index a43b9256..7ebf13ff 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -3655,12 +3655,10 @@ - When a socket is opened by the D-Bus library it truncates the path - name right before the first trailing Nul byte. This is true for both - normal paths and abstract paths. Note that this is a departure from - previous versions of D-Bus that would create sockets with a fixed - length path name. Names which were shorter than the fixed length - would be padded by Nul bytes. + When a Unix socket is opened by the D-Bus library, the socket address + length does not include the whole struct sockaddr_un, + but only the length of the pathname or abstract string (beside other + fields). Unix domain sockets are not available on Windows.