]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit-printf.c
core: resolve more specifiers in unit_name_printf()
authorLennart Poettering <lennart@poettering.net>
Mon, 5 Dec 2016 18:12:54 +0000 (19:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 17:47:32 +0000 (18:47 +0100)
commitb1801e6433c30cb0ab7d7c823c98c637edfe0720
treeaa7d51c90f776fda997811908dc93923f4686bf1
parent13e40f5a4cd2cbecd3d35e0d6b277749b1d21272
core: resolve more specifiers in unit_name_printf()

unit_name_printf() is usually what we use when the resulting string shall
qualify as unit name, and it hence avoids resolving specifiers that almost
certainly won't result in valid unit names.

Add a couple of more specifiers that unit_full_printf() resolves also to the
list unit_name_printf() resolves, as they are likely to be useful in valid unit
names too. (Note that there might be cases where this doesn't hold, but we
should still permit this, as more often than not they are safe, and if people
want to use them that way, they should be able to.)
src/core/unit-printf.c