chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v220: Apply "Fixes to user and session saving"
[elogind.git]
/
src
/
libelogind
/
sd-bus
/
bus-container.c
diff --git
a/src/libelogind/sd-bus/bus-container.c
b/src/libelogind/sd-bus/bus-container.c
index f157c25bbab83cfa9c3a37b7307bfb7ced80c9ae..fa7a207448806f8e5cc3e5efd2a3a5217d05a7e3 100644
(file)
--- a/
src/libelogind/sd-bus/bus-container.c
+++ b/
src/libelogind/sd-bus/bus-container.c
@@
-222,7
+222,7
@@
int bus_container_connect_kernel(sd_bus *b) {
if (recvmsg(pair[0], &mh, MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) < 0)
return -errno;
if (recvmsg(pair[0], &mh, MSG_NOSIGNAL|MSG_CMSG_CLOEXEC) < 0)
return -errno;
-
for (cmsg = CMSG_FIRSTHDR(&mh); cmsg; cmsg = CMSG_NXTHDR(&mh, cmsg)
)
+
CMSG_FOREACH(cmsg, &mh
)
if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) {
int *fds;
unsigned n_fds;
if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) {
int *fds;
unsigned n_fds;