]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/bus-unit-util: tweak error handling in bus_append_exec_command
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Jul 2025 12:06:52 +0000 (14:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Jul 2025 15:47:11 +0000 (17:47 +0200)
commitce120ac82370a93409dcea4227deda73474038db
tree696bd46737f15469f9de47fc5695b73e89df6b8d
parent8d853534edb186b079030adb5f3c602ef58fee41
shared/bus-unit-util: tweak error handling in bus_append_exec_command

exec_command_flags_to_strv() should not fail, unless we screwed up, so assert
instead of returning an error. Also, no need to strdup constant _PATH_BSHELL;
drop that so that we can get rid of the oom error handling. Finally, rename
l → cmdline for clarity.
src/shared/bus-unit-util.c