core: write out correct field name when creating transient service units

This commit is contained in:
Lennart Poettering 2019-11-27 12:05:38 +01:00
parent 403e4b4728
commit f14bf01312

View file

@ -1095,7 +1095,7 @@ int bus_set_transient_exec_command(
if (!f) if (!f)
return -ENOMEM; return -ENOMEM;
fputs("ExecStart=\n", f); fprintf(f, "%s=\n", name);
LIST_FOREACH(command, c, *exec_command) { LIST_FOREACH(command, c, *exec_command) {
_cleanup_free_ char *a = NULL, *t = NULL, *exec_chars = NULL; _cleanup_free_ char *a = NULL, *t = NULL, *exec_chars = NULL;