From: Abdo Roig-Maranges Date: Tue, 23 Jun 2015 09:13:13 +0000 (+0200) Subject: core: fix reversed dependency check in unit_check_unneeded X-Git-Tag: v222~79^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=084918ba41acbb80076c64e7338cf73101b1385e;p=thirdparty%2Fsystemd.git core: fix reversed dependency check in unit_check_unneeded This was introduced by commit be7d9ff730cb88d7c6a8 and breaks StopWhenUnneeded=true in the presence of a Requisite dependency. --- diff --git a/src/core/unit.c b/src/core/unit.c index 7bb2afc9f2a..fac017c57d9 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -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,