summaryrefslogtreecommitdiff
path: root/src/core/service.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-01-22 09:47:59 +0100
committerDaniel Mack <github@zonque.org>2016-01-22 09:47:59 +0100
commit371859d6b55478f1c8d04930f92d52b32ddfdf95 (patch)
tree9078a5ec96825fe1d3331c0b1ac5c0bfbb17f4c2 /src/core/service.c
parent07313a18263ca6f2e2a49ee4fba79aa6249ff398 (diff)
parent366b7db4b65b994cd33cf4fd3c1be429be561307 (diff)
Merge pull request #2080 from chaloulo/split-mode-host-remove-port-from-journal-filename
journal-remote: split-mode=host, remove port from journal filename
Diffstat (limited to 'src/core/service.c')
-rw-r--r--src/core/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c
index c5b689a35c..ae84cccbc8 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -3201,7 +3201,7 @@ int service_set_socket_fd(Service *s, int fd, Socket *sock, bool selinux_context
if (s->state != SERVICE_DEAD)
return -EAGAIN;
- if (getpeername_pretty(fd, &peer) >= 0) {
+ if (getpeername_pretty(fd, true, &peer) >= 0) {
if (UNIT(s)->description) {
_cleanup_free_ char *a;