]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: fix reversed dependency check in unit_check_unneeded 335/head
authorAbdo Roig-Maranges <abdo.roig@gmail.com>
Tue, 23 Jun 2015 09:13:13 +0000 (11:13 +0200)
committerAbdo Roig-Maranges <abdo.roig@gmail.com>
Tue, 23 Jun 2015 12:13:13 +0000 (14:13 +0200)
This was introduced by commit be7d9ff730cb88d7c6a8 and breaks
StopWhenUnneeded=true in the presence of a Requisite dependency.

src/core/unit.c

index 7bb2afc9f2a965810e594fed6af55efed0556a5f..fac017c57d90eb43cbc16a29f08d60739b9d3c9d 100644 (file)
@@ -1596,7 +1596,7 @@ static void unit_check_unneeded(Unit *u) {
         static const UnitDependency needed_dependencies[] = {
                 UNIT_REQUIRED_BY,
                 UNIT_REQUIRED_BY_OVERRIDABLE,
-                UNIT_REQUISITE,
+                UNIT_REQUISITE_OF,
                 UNIT_REQUISITE_OF_OVERRIDABLE,
                 UNIT_WANTED_BY,
                 UNIT_BOUND_BY,