From: Michal Schmidt Date: Fri, 23 Sep 2011 11:58:00 +0000 (+0200) Subject: unit: fix complementing of requirement deps with After deps for targets X-Git-Tag: v36~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a65cb51f29ee177f6f800c87232b68475216a418;p=systemd 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. --- diff --git a/src/unit.c b/src/unit.c index 0b435cb7..903a8e4d 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 */