socket-util: add new connect_unix_path() helper
authorLennart Poettering <lennart@poettering.net>
Tue, 10 May 2022 14:16:29 +0000 (16:16 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 May 2022 20:01:38 +0000 (05:01 +0900)
commit2679aee440409b89b8922f268c3e27f4327f8093
treee5db159ea036b1ea978220f27a38b8e313f8be2f
parentbf7a24e50fb2e98de8600d06ee0cd0cbd55ea9a6
socket-util: add new connect_unix_path() helper

This is a short helper for connecting to AF_UNIX sockets in the file
system. It works around the 108ch limit of sockaddr_un, and supports
"at" style fds.

This doesn't come with a test of its own, but the next patch will add
that.
src/basic/socket-util.c
src/basic/socket-util.h