diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-24 21:24:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-25 01:29:55 +0100 |
commit | 33649f58afe3e8b09580719fc16eca249d0efffc (patch) | |
tree | 63d94ece4a882d2fc7007cded1316b03cfd40b61 | |
parent | 79a98c609da042c60260e8e0236464014d480dcb (diff) |
shared: fix getpeername_pretty() for AF_UNIX sockets
-rw-r--r-- | src/shared/socket-util.c | 2 |
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; |