gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-developers] a couple of fixes for abstract sockets on linux


From: Andrew Cann
Subject: [GNUnet-developers] a couple of fixes for abstract sockets on linux
Date: Thu, 26 Sep 2013 21:49:28 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

These two patches fix a couple of bugs in the way abstract unix domain
sockets are used on Linux.

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.

https://canndrew.org/misc/dont_drop_first_character_of_abstract_socket_path.diff

Currently when using an abstract socket the first character of the path
get chopped off. So, for example, trying to create a socket called
"/tmp/gnunet-service-foo.sock" results in a socket called
"tmp/gnunet-service-foo.sock". This patch fixes this.

 - Andrew

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSRDtoAAoJEJQq94U5BTTOtIcP/1JBK0ISdGU9e1sdL4GNqL/V
MIuwrL37MuS4rJTcYYibW9xf3euWSoPk8XzYwIqozES8Op7wjXZZvOZZucEcQ/Mn
+80bgqUwPluGScRhvEDmoWUA7WCZX63T20lC2Kl2Zu/IYb5A3b74jO8KdjD3+DV0
mqprtdw3bU2qRsDWHyebdxUHshERPB1eqNev49bh9sliXDbTy7zexRqOXjqpE6zV
NS4SGIkBr09z/HnNruvERvHmXZW7HG+3cZ3imLE45XhZMf4MH8sRgEv6Blv780Ys
99rOcG0ydc1IAXMObEC3FP6uZQlWzUr1UUgBaBmvcqkLaLU3egMMqeM0BbRxlSbe
OKbvcjp3wQmVlLrxmej3popBMTZD/tIaclTGk6JFPqZno6kmeUbuew8c8rQ7u9hE
GpoJ2GSB97kKrzBUeqNFH24BLfYrL1tMkO64x7KVo6JMgf6DUmwNm21ECJbTFGK8
J7sIFnlKgpDtxNvYA9qGfZNrSyuhMET0EDMfgLjdvbsltuL2SCkV/sMDHbA/UtN7
RMVZD5IqIOOzpZ7E3b4Lz4IlxXvvf3y9NYitJKKbn+OzvJax61816HY30UiK6ItB
BpxM4D/NTJSwc3gW6rK7M77JwGZKc77G4Vg/I0D1ONqFnKy0GF5Ut+1grwpKX7yH
Ij5tbkKtDTN1csOHs1fa
=L/uz
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]