From: Yu Watanabe Date: Fri, 15 Oct 2021 20:04:26 +0000 (+0900) Subject: userdb: fix type to pass to connect() X-Git-Tag: v250-rc1~496 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c14e57356f1e82c35bf3a3e8aaeac134b545801b;p=thirdparty%2Fsystemd.git userdb: fix type to pass to connect() Fixes https://github.com/systemd/systemd/pull/20613#issuecomment-944621275. --- diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index af494d3075b..33c8caa42ff 100644 --- a/src/userdb/userdbctl.c +++ b/src/userdb/userdbctl.c @@ -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();