mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
userdb: fix type to pass to connect()
Fixes https://github.com/systemd/systemd/pull/20613#issuecomment-944621275.
This commit is contained in:
committed by
Lennart Poettering
parent
eaaa02bffe
commit
c14e57356f
@@ -512,7 +512,7 @@ static int display_services(int argc, char *argv[], void *userdata) {
|
||||
if (fd < 0)
|
||||
return log_error_errno(r, "Failed to allocate AF_UNIX/SOCK_STREAM socket: %m");
|
||||
|
||||
if (connect(fd, &sockaddr.un, sockaddr_len) < 0) {
|
||||
if (connect(fd, &sockaddr.sa, sockaddr_len) < 0) {
|
||||
no = strjoin("No (", errno_to_name(errno), ")");
|
||||
if (!no)
|
||||
return log_oom();
|
||||
|
||||
Reference in New Issue
Block a user