[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Tue May 19 06:43:09 PDT 2015
src/core/unit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f3b85044c845de03de05135c1dd5f3298bf3e5a2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue May 19 15:42:03 2015 +0200
unit: fix unit_check_unneeded() dependency iteration
Fixes a regression introduced in be7d9ff730cb88d7c6a869dd5c47754c78ceaef2.
diff --git a/src/core/unit.c b/src/core/unit.c
index 42c7566..f7d6289 100644
--- a/src/core/unit.c
+++ b/src/core/unit.c
@@ -1618,7 +1618,7 @@ static void unit_check_unneeded(Unit *u) {
return;
for (j = 0; j < ELEMENTSOF(needed_dependencies); j++)
- SET_FOREACH(other, u->dependencies[j], i)
+ SET_FOREACH(other, u->dependencies[needed_dependencies[j]], i)
if (unit_active_or_pending(other))
return;
More information about the systemd-commits
mailing list