summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-11 02:23:11 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-11 02:23:11 +0200
commitb12c1e7cf744a5e28db5a29e89377496893c1ab8 (patch)
tree722821c2505b3a18b660b1120ec994d2ae016d3d /src/manager.c
parentb574246b4f8e4eb86c29c38c7df47b541b68188a (diff)
socket: pass minimal abstract socket names
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c
index d26541d3ea..6dfef713ed 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -89,7 +89,7 @@ static int manager_setup_notify(Manager *m) {
else
strncpy(sa.un.sun_path+1, NOTIFY_SOCKET, sizeof(sa.un.sun_path)-1);
- if (bind(m->notify_watch.fd, &sa.sa, sizeof(sa)) < 0) {
+ if (bind(m->notify_watch.fd, &sa.sa, sizeof(sa_family_t) + 1 + strlen(sa.un.sun_path+1)) < 0) {
log_error("bind() failed: %m");
return -errno;
}