chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
983d9c9
)
execute: use right logger socket
author
Lennart Poettering
<lennart@poettering.net>
Sun, 11 Jul 2010 02:38:40 +0000
(
04:38
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 11 Jul 2010 02:38:40 +0000
(
04:38
+0200)
src/execute.c
patch
|
blob
|
history
diff --git
a/src/execute.c
b/src/execute.c
index 0c2526b33e1423b35a834db1553d49be468aa0b3..6363719cdeb80e10d3e1ce7480e541f24f02e2b7 100644
(file)
--- 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;
}