|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
From 4af1100591133339a3fcaf21f3aacf2aed3593c3 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
From: Hristo Venev <mustrumr97@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
Date: Mon, 23 Jun 2014 18:53:04 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
Subject: [PATCH] core: make sure Environment fields passed in for transient
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
units are properly written to unit files
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
https://bugs.freedesktop.org/show_bug.cgi?id=76744
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
(cherry picked from commit cdd7b7dfd44649b204c43e907f03d4294de4f28a)
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
src/core/dbus-execute.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
index cb9a077d..ecbadd76 100644
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
--- a/src/core/dbus-execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
+++ b/src/core/dbus-execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
@@ -848,7 +848,7 @@ int bus_exec_context_set_transient_property(
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
strv_free(c->environment);
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
c->environment = e;
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
- joined = strv_join(c->environment, " ");
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
+ joined = strv_join_quoted(c->environment);
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
if (!joined)
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
return -ENOMEM;
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|