mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
shared: fix getpeername_pretty() for AF_UNIX sockets
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user