diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-25 14:39:14 +0400 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-07-15 16:26:54 +0100 |
commit | e6f2eed6f868fbb0db3bbbc76191bf32c404934e (patch) | |
tree | a825e4cfe815cdc072a35221df78decf0f8cbda7 /doc | |
parent | df6ab5924cd12b68764f76c990094d1791a974cf (diff) | |
download | dbus-e6f2eed6f868fbb0db3bbbc76191bf32c404934e.tar.gz |
spec: try to improve comment about AF_UNIX path
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dbus-specification.xml | 10 |
1 files 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 @@ </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. |