It's kinda pointless to include a unix fd header field in messages if it
carries the value 0, but let's do this anyway...
size_t ri;
int r;
uint32_t unix_fds = 0;
size_t ri;
int r;
uint32_t unix_fds = 0;
+ bool unix_fds_set = false;
void *offsets = NULL;
unsigned n_offsets = 0;
size_t sz = 0;
void *offsets = NULL;
unsigned n_offsets = 0;
size_t sz = 0;
}
case BUS_MESSAGE_HEADER_UNIX_FDS:
}
case BUS_MESSAGE_HEADER_UNIX_FDS:
return -EBADMSG;
if (!streq(signature, "u"))
return -EBADMSG;
if (!streq(signature, "u"))
if (r < 0)
return -EBADMSG;
if (r < 0)
return -EBADMSG;
- if (unix_fds == 0)
- return -EBADMSG;
-