mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
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.
This commit is contained in:
committed by
Lennart Poettering
parent
799f46d36f
commit
a65cb51f29
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user