8d86bd
From 4fbd505c5a15f2b6078dc43e5a1ff999993e8b23 Mon Sep 17 00:00:00 2001
8d86bd
From: Lennart Poettering <lennart@poettering.net>
8d86bd
Date: Mon, 26 Nov 2018 21:07:06 +0100
8d86bd
Subject: [PATCH] dbus-execute: generate the correct transient unit setting
8d86bd
8d86bd
(cherry picked from commit 1704fba92f7b2c92238b0833943669045374daf9)
8d86bd
8d86bd
Related: #2093479
8d86bd
---
8d86bd
 src/core/dbus-execute.c | 4 ++--
8d86bd
 1 file changed, 2 insertions(+), 2 deletions(-)
8d86bd
8d86bd
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
8d86bd
index fc433cc96f..00f4aeacef 100644
8d86bd
--- a/src/core/dbus-execute.c
8d86bd
+++ b/src/core/dbus-execute.c
8d86bd
@@ -1856,11 +1856,11 @@ int bus_exec_context_set_transient_property(
8d86bd
 
8d86bd
                                 if (streq(name, "StandardErrorFile")) {
8d86bd
                                         c->std_error = EXEC_OUTPUT_FILE;
8d86bd
-                                        unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardOutput=file:%s", s);
8d86bd
+                                        unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardError=file:%s", s);
8d86bd
                                 } else {
8d86bd
                                         assert(streq(name, "StandardErrorFileToAppend"));
8d86bd
                                         c->std_error = EXEC_OUTPUT_FILE_APPEND;
8d86bd
-                                        unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardOutput=append:%s", s);
8d86bd
+                                        unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "StandardError=append:%s", s);
8d86bd
                                 }
8d86bd
                         }
8d86bd
                 }