1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03: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:
Michal Schmidt 2011-09-23 13:58:00 +02:00 committed by Lennart Poettering
parent 799f46d36f
commit a65cb51f29

View File

@ -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 */