]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemctl/systemctl.c
systemctl: fix masking of template units 6741/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Sep 2017 14:45:54 +0000 (17:45 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Sep 2017 14:55:10 +0000 (17:55 +0300)
commit173471b771a52baa7f705019600956e875b0cb9a
tree48d95194f43f28f776c3c8fd0c73785975d675c2
parentf8d6cb48a363ddae6fab50636ccc433b5f4dd604
systemctl: fix masking of template units

systemctl would try to load the properties of the unit, which is impossible
for template names, and the whole operation would fail. It seems that this
regression was introduced in 00c83b430020914499bebf22be6b258f518ae291.

Export the part of unit_find_paths() responsible for locating instance unit
fragments and reuse it from unit_exists() to fix the handling of template
units.

Fixes #6412.
src/systemctl/systemctl.c