aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-02-29 00:12:10 +0000
committerFlorian Dold <florian.dold@gmail.com>2016-02-29 00:12:10 +0000
commit4422071097b0f6334a231a7dd1e47e6738e5a2cf (patch)
treea8d3842265ca3546129c88a443eec90e8daada82
parentdf3c24884b5dab5cffa11294274ba24da3d86010 (diff)
Do $-expansion for OPTIONS of simple services
In the future, this should also handle escaping and quotation. For compatibility reasons, the expansion is only done for simple service configs.
-rw-r--r--src/arm/gnunet-service-arm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c
index 628bbc99b3..0ffda9331e 100644
--- a/src/arm/gnunet-service-arm.c
+++ b/src/arm/gnunet-service-arm.c
@@ -520,6 +520,10 @@ start_process (struct ServiceList *sl,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Starting simple service `%s' using binary `%s'\n",
sl->name, sl->binary);
+ /* FIXME: dollar expansion should only be done outside
+ * of ''-quoted strings, escaping should be considered. */
+ if (NULL != options)
+ options = GNUNET_CONFIGURATION_expand_dollar (cfg, options);
sl->proc =
GNUNET_OS_start_process_s (sl->pipe_control,
GNUNET_OS_INHERIT_STD_OUT_AND_ERR,