X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fsocket-util.c;h=6d9c30352964644e85eb5bc0e66c8cb22923ae47;hb=c9ccc19f9eb0599109094c57b7a2f668d708f0c1;hp=4700b3bc9950a49c1fee8c19866e3b3fa1ee37c1;hpb=79a98c609da042c60260e8e0236464014d480dcb;p=elogind.git diff --git a/src/shared/socket-util.c b/src/shared/socket-util.c index 4700b3bc9..6d9c30352 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;