Applying 1st patch from Andrew Cann (see also #2887).
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Sep 2013 18:03:30 +0000 (18:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Sep 2013 18:03:30 +0000 (18:03 +0000)
commit5f6f8c183270c3d6723342ea1ab6b40cc5fb7201
tree01bc384a2a1918ef385c4e6f79b5e54f120b700d
parent4365da8f681ae3e45f311bad63c9f29415dab2ca
Applying 1st patch from Andrew Cann (see also #2887).

https://canndrew.org/misc/trim_abstract_socket_paths.diff [^]

This changes the addrlen argument passed to the connect, bind and sendto
syscalls to reflect the length of the string in sockaddr_un.sun_path. I
was trying to talk to GNUnet services using socat and discovered that it
expects abstract sockets to be created this way and won't connect
otherwise. Looking at some other programs that I could talk to using
socat (dbus, X11), this is how they create abstract sockets as well.
src/util/network.c