summaryrefslogtreecommitdiffstats
path: root/src/shared/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-24 21:24:06 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-25 01:29:55 +0100
commit33649f58afe3e8b09580719fc16eca249d0efffc (patch)
tree63d94ece4a882d2fc7007cded1316b03cfd40b61 /src/shared/socket-util.c
parentunit: include peer identity in description of per-connection socket-activated... (diff)
downloadsystemd-33649f58afe3e8b09580719fc16eca249d0efffc.tar.xz
systemd-33649f58afe3e8b09580719fc16eca249d0efffc.zip
shared: fix getpeername_pretty() for AF_UNIX sockets
Diffstat (limited to 'src/shared/socket-util.c')
-rw-r--r--src/shared/socket-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c
index 4700b3bc99..6d9c303529 100644
--- a/src/shared/socket-util.c
+++ b/src/shared/socket-util.c
@@ -594,7 +594,7 @@ int getpeername_pretty(int fd, char **ret) {
if (r < 0)
return r;
- if (asprintf(ret, "PID %lu/UID %lu", (unsigned long) ucred.pid, (unsigned long) ucred.pid) < 0)
+ if (asprintf(ret, "PID %lu/UID %lu", (unsigned long) ucred.pid, (unsigned long) ucred.uid) < 0)
return -ENOMEM;
return 0;