]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
spec: try to improve comment about AF_UNIX path
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 25 Mar 2022 10:39:14 +0000 (14:39 +0400)
committerSimon McVittie <smcv@collabora.com>
Fri, 15 Jul 2022 15:26:54 +0000 (16:26 +0100)
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 <marcandre.lureau@redhat.com>
doc/dbus-specification.xml

index a43b925609f99678ffea4b10f183c064663c2477..7ebf13ff442f58e971b3a30e1be60008d165f072 100644 (file)
       </para>
 
       <para>
-        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 <literal>struct sockaddr_un</literal>,
+        but only the length of the pathname or abstract string (beside other
+        fields).
       </para>
       <para>
         Unix domain sockets are not available on Windows.