]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/socket-activate/socket-activate.c
activate: allow multiple, possibly invalid, fd names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Feb 2016 04:33:09 +0000 (23:33 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Feb 2016 16:54:39 +0000 (11:54 -0500)
commitcf98937cc73201a71fabbd35fd9853cbe2790ed0
tree960390a70fee850f25a2aa89303ddb1223a55890
parentafe773b01a704b98a350a36fa518bfcd6a54323b
activate: allow multiple, possibly invalid, fd names

Previous code only allowed a single name to be passed, and duplicated
it over all descriptors. For the sake of testing, allow different
names and in arbitrary number. If just one is given, duplicate it
to match the number of sockets. This matches previuos behaviour.

Since this is a testing tool, it seems useful to allow passing invalid
names to test application behaviour with invalid names. Hence, only
warn. When warning, escape the name.
man/systemd-activate.xml
src/activate/activate.c