chiark / gitweb /
core: make sure Environment fields passed in for transient units are properly written...
authorHristo Venev <mustrumr97@gmail.com>
Mon, 23 Jun 2014 16:53:04 +0000 (18:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 23 Jun 2014 16:53:56 +0000 (18:53 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=76744

src/core/dbus-execute.c

index cb9a077d0e45d67cf3c5eae384092ed436335b04..ecbadd765b5bdebb45d38057322881c8502021be 100644 (file)
@@ -848,7 +848,7 @@ int bus_exec_context_set_transient_property(
                         strv_free(c->environment);
                         c->environment = e;
 
                         strv_free(c->environment);
                         c->environment = e;
 
-                        joined = strv_join(c->environment, " ");
+                        joined = strv_join_quoted(c->environment);
                         if (!joined)
                                 return -ENOMEM;
 
                         if (!joined)
                                 return -ENOMEM;