diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-27 23:24:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-27 23:24:17 +0200 |
commit | 9f151f29fd37d9fdd3aad303cf0489482522918f (patch) | |
tree | a2acbf1463ebd49e558a9f1edeef18187f5392bd /src/unit.c | |
parent | 6ccb1b44295edfbd4f7bc0211fe55ad765ef2af3 (diff) |
service: don't create sysv order deps on merged units
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unit.c b/src/unit.c index 5a451c57c2..5960c277b7 100644 --- a/src/unit.c +++ b/src/unit.c @@ -578,7 +578,7 @@ const char *unit_description(Unit *u) { if (u->meta.description) return u->meta.description; - return u->meta.id; + return strna(u->meta.id); } void unit_dump(Unit *u, FILE *f, const char *prefix) { @@ -1403,6 +1403,9 @@ int unit_add_dependency(Unit *u, UnitDependency d, Unit *other, bool add_referen assert(d >= 0 && d < _UNIT_DEPENDENCY_MAX); assert(other); + u = unit_follow_merge(u); + other = unit_follow_merge(other); + /* We won't allow dependencies on ourselves. We will not * consider them an error however. */ if (u == other) |