]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: rework how we initialize struct sockaddr_un
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Oct 2018 16:22:04 +0000 (18:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Oct 2018 17:40:51 +0000 (19:40 +0200)
commit95cb14b0681692d372e7b0bfb3c9a9bbc6ffbd0d
tree62560dd15c56695be03aa3e3f9d53a3a7c875e4f
parent1d261418e280a7918549d638d574fbea08cf79a9
sd-bus: rework how we initialize struct sockaddr_un

Let's use structured initialization, but more importantly, let's
increase salen by 1, if we reference AF_UNIX sockets in the file system,
so that they also contain the trailing NUL byte. This is what unix(7)
suggests to do, hence follow it.
src/libsystemd/sd-bus/sd-bus.c