]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: honor FileDescriptorName= too for Accept=yes sockets
authorMike Yuan <me@yhndnzj.com>
Sun, 25 Aug 2024 21:21:47 +0000 (23:21 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 26 Aug 2024 13:40:15 +0000 (15:40 +0200)
commitdaa78907af9ea3bfdce937ffd4df2a87dd720fcf
tree68a0e66edd7800baec06817d63ca6b6ee5e3c83e
parent2234032c47f0abaf59e93b2a42ee926f9233f05c
core: honor FileDescriptorName= too for Accept=yes sockets

So far we manually hardcoded $LISTEN_FDNAMES to "varlink" in various
varlink service units we ship, even though FileDescriptorName=varlink
is specified in associated socket units already, because
FileDescriptorName= is currently silently ignored when combined with
Accept=yes. Let's step away from this, which seems saner.

Note that this is technically a compat break, but a mostly negligible
one as there shall be few users setting FileDescriptorName= but
still expecting LISTEN_FDNAMES=connection in the actual executable.

Preparation for #34080
NEWS
man/systemd.socket.xml
src/core/service.c
src/core/socket.c
src/core/socket.h