diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-05-10 16:18:35 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-05-14 05:01:38 +0900 |
commit | 28ae8da97240c0048f03ed516d64fe064a7fc161 (patch) | |
tree | cff26bfa8ca06c1179d01a2cfdfbe27a17c9fe0e /src/userdb | |
parent | 2679aee440409b89b8922f268c3e27f4327f8093 (diff) | |
download | systemd-28ae8da97240c0048f03ed516d64fe064a7fc161.tar.gz |
fileio: port read_file_full() to use connect_unix_path()
This way we can connect correctly to any AF_UNIX socket in the file
system, and even save some code. Yay!
This also adds some test code for this, that ensures read_file_full()
works correctly for AF_UNIX sockets that violate the 108 char limit.
Supporting sockets like this kinda matters I think, for the simple
reason that apps want to build socket paths via XDG_RUNTIME_DIR and
suchlike, and we should be able to connect to them, even via
non-normalized paths.
Diffstat (limited to 'src/userdb')
0 files changed, 0 insertions, 0 deletions