summaryrefslogtreecommitdiff
path: root/src/core/dbus-service.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-04-03 13:56:18 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-04-24 10:02:30 +0200
commit0a27d86a3f3d6b577a094f6024a1db0eac76da85 (patch)
tree7fc420caf59ac7d65317e622ba4b617e36221a4c /src/core/dbus-service.c
parent8c41640a71fd03e4a2a45a28e311bbfd08e4c49a (diff)
downloadsystemd-0a27d86a3f3d6b577a094f6024a1db0eac76da85.tar.gz
core: fix writing of ExecStartEx and friends
The property name is called ExecStartEx, but we have to write it as ExecStart= in the unit file. :( Bug introduced in b3d593673c5b8b0b7d781fd26ab2062ca6e7dbdb when ex-properties were initially added. In addition, we cannot escape $ as $$, because when ":" is used, we wouldn't unescape $$ back to $.
Diffstat (limited to 'src/core/dbus-service.c')
-rw-r--r--src/core/dbus-service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c
index 0f6e315233..ff61495c34 100644
--- a/src/core/dbus-service.c
+++ b/src/core/dbus-service.c
@@ -635,7 +635,8 @@ static int bus_service_set_transient_property(
return bus_set_transient_exit_status(u, name, &s->success_status, message, flags, error);
ci = service_exec_command_from_string(name);
- ci = (ci >= 0) ? ci : service_exec_ex_command_from_string(name);
+ if (ci < 0)
+ ci = service_exec_ex_command_from_string(name);
if (ci >= 0)
return bus_set_transient_exec_command(u, name, &s->exec_command[ci], message, flags, error);