summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAbdo Roig-Maranges <abdo.roig@gmail.com>2015-06-23 11:13:13 +0200
committerAbdo Roig-Maranges <abdo.roig@gmail.com>2015-06-23 14:13:13 +0200
commit084918ba41acbb80076c64e7338cf73101b1385e (patch)
treeebf5b2ab3284e4efa5f746c3ac20493390417bad /src/core
parent82627069e93a0f75265797b0a1524fcda1e83c39 (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c
index 7bb2afc9f2..fac017c57d 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,