diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-14 03:10:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-14 03:12:25 +0100 |
commit | 91b22f21f3824c1766d34f622c5bbb70cbe881a8 (patch) | |
tree | db29bcf8e6c77ea521fa2f8185339c50c606af35 /src/execute.c | |
parent | 88213476187cafc86bea2276199891873000588d (diff) |
core: move abstract namespace sockets to /dev/.run
Now that we have /dev/.run there's no need to use abstract namespace
sockets. So, let's move things to /dev/.run, to make things more easily
discoverable and improve compat with chroot() and fs namespacing.
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/execute.c b/src/execute.c index ee05e99445..556ff9bda9 100644 --- a/src/execute.c +++ b/src/execute.c @@ -173,9 +173,9 @@ static int connect_logger_as(const ExecContext *context, ExecOutput output, cons zero(sa); sa.sa.sa_family = AF_UNIX; - strncpy(sa.un.sun_path+1, LOGGER_SOCKET, sizeof(sa.un.sun_path)-1); + strncpy(sa.un.sun_path, LOGGER_SOCKET, sizeof(sa.un.sun_path)); - if (connect(fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + 1 + sizeof(LOGGER_SOCKET) - 1) < 0) { + if (connect(fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + sizeof(LOGGER_SOCKET) - 1) < 0) { close_nointr_nofail(fd); return -errno; } |