mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
udevd: init_notify() fix abstract namespace name handling
This commit is contained in:
parent
4d32b44136
commit
35df38c36a
@ -1006,7 +1006,9 @@ static int init_notify(const char *state)
|
||||
|
||||
memset(&msghdr, 0, sizeof(msghdr));
|
||||
msghdr.msg_name = &sockaddr;
|
||||
msghdr.msg_namelen = sizeof(struct sockaddr_un);
|
||||
msghdr.msg_namelen = sizeof(sa_family_t) + strlen(e);
|
||||
if (msghdr.msg_namelen > sizeof(struct sockaddr_un))
|
||||
msghdr.msg_namelen = sizeof(struct sockaddr_un);
|
||||
msghdr.msg_iov = &iovec;
|
||||
msghdr.msg_iovlen = 1;
|
||||
msghdr.msg_control = &control;
|
||||
|
Loading…
x
Reference in New Issue
Block a user