summaryrefslogtreecommitdiff
path: root/src/core/load-fragment.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-02 20:40:54 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-02 20:40:54 +0200
commit5c6c275e43bb5944c271976ef2f67070c54362ae (patch)
tree2a5c3eb3d200b355bd8c80ceaa2b51a78b864a90 /src/core/load-fragment.c
parent8ad54a01825f962458cfac9e5a62e7268ac2fa05 (diff)
parent133e5b362f862ac9c9b1dd7b5de0b004cbb9af54 (diff)
Merge pull request #3162 from keszybz/alias-refusal
Refuse Alias, DefaultInstance, templated units in install (as appropriate)
Diffstat (limited to 'src/core/load-fragment.c')
-rw-r--r--src/core/load-fragment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c
index 31b995aa6a..1a8c03904c 100644
--- a/src/core/load-fragment.c
+++ b/src/core/load-fragment.c
@@ -3612,7 +3612,7 @@ static int load_from_path(Unit *u, const char *path) {
/* Hmm, no suitable file found? */
return 0;
- if (UNIT_VTABLE(u)->no_alias && set_size(symlink_names) > 1) {
+ if (!unit_type_may_alias(u->type) && set_size(symlink_names) > 1) {
log_unit_warning(u, "Unit type of %s does not support alias names, refusing loading via symlink.", u->id);
return -ELOOP;
}