diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-11 04:38:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-11 04:38:40 +0200 |
commit | b5f776cee9afc14e6c4b945be0576ab3b27e33b7 (patch) | |
tree | e9cf02d82c1fa12ccf6e8fd9e02aa7433cf988d6 /src/execute.c | |
parent | 983d9c90151f4b85301bd8078afd560269e75961 (diff) |
execute: use right logger socket
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execute.c b/src/execute.c index 0c2526b33e..6363719cde 100644 --- a/src/execute.c +++ b/src/execute.c @@ -171,7 +171,7 @@ static int connect_logger_as(const ExecContext *context, ExecOutput output, cons sa.sa.sa_family = AF_UNIX; strncpy(sa.un.sun_path+1, LOGGER_SOCKET, sizeof(sa.un.sun_path)-1); - if (connect(fd, &sa.sa, sizeof(sa)) < 0) { + if (connect(fd, &sa.sa, sizeof(sa_family_t) + 1 + sizeof(LOGGER_SOCKET) - 1) < 0) { close_nointr_nofail(fd); return -errno; } |