4 ms·
"Immediately after connecting to the server, the client must send a single nul byte. This byte may be accompanied by credentials information on some operating s
by brainsalad 12y ago
"Immediately after connecting to the server, the client must send a single nul byte. This byte may be accompanied by credentials information on some operating systems that use sendmsg() with SCM_CREDS or SCM_CREDENTIALS to pass credentials over UNIX domain sockets. However, the nul byte must be sent even on other kinds of socket, and even on operating systems that do not require a byte to be sent in order to transmit credentials. The text protocol described in this document begins after the single nul byte. If the first byte received from the client is not a nul byte, the server may disconnect that client."
Oh, technically the dbus auth handshake is defined as not being part of the dbus protocol. That's not convincing.
- fmoralesc 12y agoIf they are defined as separate protocols, then the argument that the spec is ridiculous because it contradicts itself on this point is based on a misunderstanding, whatever the merit (or demerit) for these things being separate protocols is.