richardphibel / rpms / systemd

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