1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

core: fix unfortunate typo in unit_is_unneeded()

Follow-up for a3c1168ac2.
This commit is contained in:
Lennart Poettering 2018-10-09 22:23:14 +02:00
parent cf99f8eacf
commit 93d4cb09d5

View File

@ -2000,7 +2000,7 @@ bool unit_is_unneeded(Unit *u) {
* restart, then don't clean this one up. */ * restart, then don't clean this one up. */
HASHMAP_FOREACH_KEY(v, other, u->dependencies[deps[j]], i) { HASHMAP_FOREACH_KEY(v, other, u->dependencies[deps[j]], i) {
if (u->job) if (other->job)
return false; return false;
if (!UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other))) if (!UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other)))