mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
unit: fix unit_check_unneeded() dependency iteration
Fixes a regression introduced in be7d9ff730
.
This commit is contained in:
parent
fcd8b266ed
commit
f3b85044c8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user