X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fdbus-execute.c;h=9276da4cdc3e2c627ff46b3a661891ec275c30f1;hb=609c3029076da1ba423673161e5d0fc82ccca6b6;hp=cb9a077d0e45d67cf3c5eae384092ed436335b04;hpb=1b8689f94983b47bf190e77ddb03a8fc6af15fb3;p=elogind.git diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index cb9a077d0..9276da4cd 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -300,7 +300,7 @@ static int property_get_timer_slack_nsec( assert(reply); assert(c); - if (c->timer_slack_nsec != (nsec_t) -1) + if (c->timer_slack_nsec != NSEC_INFINITY) u = (uint64_t) c->timer_slack_nsec; else u = (uint64_t) prctl(PR_GET_TIMERSLACK); @@ -848,7 +848,7 @@ int bus_exec_context_set_transient_property( strv_free(c->environment); c->environment = e; - joined = strv_join(c->environment, " "); + joined = strv_join_quoted(c->environment); if (!joined) return -ENOMEM;