projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcd8b26
)
unit: fix unit_check_unneeded() dependency iteration
author
Lennart Poettering
<lennart@poettering.net>
Tue, 19 May 2015 13:42:03 +0000
(15:42 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 19 May 2015 13:42:42 +0000
(15:42 +0200)
Fixes a regression introduced in
be7d9ff730cb88d7c6a869dd5c47754c78ceaef2
.
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index
42c7566
..
f7d6289
100644
(file)
--- 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;