teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0801-bus-unit-util-properly-accept-StandardOutput-append-.patch

8d86bd
From b06347d1e85c98507ba386b24e6c7159edf4784f Mon Sep 17 00:00:00 2001
8d86bd
From: Lennart Poettering <lennart@poettering.net>
8d86bd
Date: Mon, 26 Nov 2018 21:07:39 +0100
8d86bd
Subject: [PATCH] =?UTF-8?q?bus-unit-util:=20properly=20accept=20StandardOu?=
8d86bd
 =?UTF-8?q?tput=3Dappend:=E2=80=A6=20settings?=
8d86bd
MIME-Version: 1.0
8d86bd
Content-Type: text/plain; charset=UTF-8
8d86bd
Content-Transfer-Encoding: 8bit
8d86bd
8d86bd
(cherry picked from commit 8d33232ef1ad051b5ed00bd7b5fffb5a19bb83ae)
8d86bd
8d86bd
Resolves: #2093479
8d86bd
---
8d86bd
 src/shared/bus-unit-util.c | 4 +++-
8d86bd
 1 file changed, 3 insertions(+), 1 deletion(-)
8d86bd
8d86bd
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
8d86bd
index 9010448aaf..3910dfa812 100644
8d86bd
--- a/src/shared/bus-unit-util.c
8d86bd
+++ b/src/shared/bus-unit-util.c
8d86bd
@@ -894,9 +894,11 @@ static int bus_append_execute_property(sd_bus_message *m, const char *field, con
8d86bd
                 } else if ((n = startswith(eq, "file:"))) {
8d86bd
                         appended = strjoina(field, "File");
8d86bd
                         r = sd_bus_message_append(m, "(sv)", appended, "s", n);
8d86bd
+                } else if ((n = startswith(eq, "append:"))) {
8d86bd
+                        appended = strjoina(field, "FileToAppend");
8d86bd
+                        r = sd_bus_message_append(m, "(sv)", appended, "s", n);
8d86bd
                 } else
8d86bd
                         r = sd_bus_message_append(m, "(sv)", field, "s", eq);
8d86bd
-
8d86bd
                 if (r < 0)
8d86bd
                         return bus_log_create_error(r);
8d86bd