]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: refuse merging on units when the unit type does not support alias
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Apr 2016 15:31:02 +0000 (17:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Apr 2016 15:31:02 +0000 (17:31 +0200)
commit934e749e18bc0641a3dc8d83c4f16a2ba4c8d966
treef780c46a7eef0357298cd0037f001f26238cdee0
parent313fe66fbd0cd3d62566edece7944d6cf45b1b21
core: refuse merging on units when the unit type does not support alias

The concept of merging units exists so that we can create Unit objects for a
number of names early, and then load them only later, possibly merging units
which then turn out to be symlinked to other names. This of course only makes
sense for unit types where multiple names per unit are supported. For all
others, let's refuse the merge operation early.
src/core/unit.c