]> git.ipfire.org Git - thirdparty/systemd.git/commit
load-fragment: config_parse_emergency_action() doesn't ever get a Manager pointer... 25936/head
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Jan 2023 09:34:23 +0000 (10:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Jan 2023 15:15:46 +0000 (16:15 +0100)
commit724f061db6efdc40a0e4994130862325d4f4c8c7
tree5b3e9a427122b5d48810db2e62eff739e87fef42
parent2ae6917a1a1cd0dae0db9827b9f6fece4e272865
load-fragment: config_parse_emergency_action() doesn't ever get a Manager pointer passed in

In 'data' we get the location passed in we write stuff, and that's not
the Manager object.

And we neither get the Manager passed in via 'userdata', because at the
time we parse the emergency action for the manager the Manager is not
actually allocated yet.

hence, let's fix this differently, and pass in the user/system mode
descriptor via the 'ltype' argument.

Fixes: #25933
src/core/load-fragment.c
src/core/main.c