]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/bus-unit-util: tweak bus_append_exec_command to use Ex prop only if necessary
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Jul 2025 17:32:51 +0000 (19:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Jul 2025 16:17:43 +0000 (18:17 +0200)
commitfb98c75e0ea1c38dd8f47833e6dbd766f5d950ec
tree704baaa600ef09a9e65e6eca37f937f9859b32b2
parent6f06afde598bb2154537f46b32f2dec48123291d
shared/bus-unit-util: tweak bus_append_exec_command to use Ex prop only if necessary

This changes little in behaviour, the conceptual part is more important. The
non-Ex variant is the actual name on the command line, and we should use the
non-Ex D-Bus property too, if it works. This increases compatibility with old
versions. But the code was mostly doing the right thing. Even the tests tested
the right thing.

Follow-up for b3d593673c5b8b0b7d781fd26ab2062ca6e7dbdb and
898fc00e794d714e2f01409bef440d910c22502a.

The test is simplified by taking advantage of the fact that both names
on the commandline are supposed to behave identically.

Partially resolves https://github.com/systemd/systemd/issues/37174.
src/shared/bus-unit-util.c
test/units/TEST-23-UNIT-FILE.exec-command-ex.sh