diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2011-09-23 13:58:00 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-09-23 16:28:27 +0200 |
commit | a65cb51f29ee177f6f800c87232b68475216a418 (patch) | |
tree | 9061048ce580a3a695294bf52f1b92b25474beb3 /src/unit.c | |
parent | 799f46d36f1c1f5ce8f638f453feeede3e6842fc (diff) |
unit: fix complementing of requirement deps with After deps for targets
'man systemd.target' says:
Unless DefaultDependencies= is set to false, target units will
implicitly complement all configured dependencies of type
Wants=, Requires=, RequiresOverridable= with dependencies of type
After= if the units in question also have DefaultDependencies=true.
It did not work because of a forgotten negation.
Diffstat (limited to 'src/unit.c')
-rw-r--r-- | src/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit.c b/src/unit.c index 0b435cb78e..903a8e4da4 100644 --- a/src/unit.c +++ b/src/unit.c @@ -774,7 +774,7 @@ int unit_add_default_target_dependency(Unit *u, Unit *target) { /* If either side wants no automatic dependencies, then let's * skip this */ if (!u->meta.default_dependencies || - target->meta.default_dependencies) + !target->meta.default_dependencies) return 0; /* Don't create loops */ |