richardphibel / rpms / systemd

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