mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
shared: fix getpeername_pretty() for AF_UNIX sockets
This commit is contained in:
parent
79a98c609d
commit
33649f58af
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user