mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
core/unit: fix logic of dropping self-referencing dependencies
Fixes a bug in15ed3c3a18
. (cherry picked from commit53e0e6ef0e
)
This commit is contained in:
parent
1d7b1ee1a7
commit
30a545965b
@ -1131,10 +1131,11 @@ static void unit_merge_dependencies(Unit *u, Unit *other) {
|
||||
}
|
||||
} else {
|
||||
assert_se(r >= 0);
|
||||
TAKE_PTR(other_deps);
|
||||
|
||||
if (hashmap_remove(other_deps, u))
|
||||
unit_maybe_warn_about_dependency(u, other->id, UNIT_DEPENDENCY_FROM_PTR(dt));
|
||||
|
||||
TAKE_PTR(other_deps);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user