fix #4672
authorChristian Grothoff <christian@grothoff.org>
Sat, 24 Sep 2016 20:33:43 +0000 (20:33 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 24 Sep 2016 20:33:43 +0000 (20:33 +0000)
src/arm/arm_api.c
src/arm/gnunet-service-arm.c

index 5c4a1c794184dc1e4526092d07b3f61ceb153024..20ba7f9af2c3e8a56a5f5be89679a54d6fa446b5 100644 (file)
@@ -597,22 +597,22 @@ start_arm_service (struct GNUNET_ARM_Handle *h,
   char *lopostfix;
 
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (h->cfg,
-                                             "arm",
-                                             "PREFIX",
-                                             &loprefix))
+      GNUNET_CONFIGURATION_get_value_filename (h->cfg,
+                                               "arm",
+                                               "PREFIX",
+                                               &loprefix))
     loprefix = GNUNET_strdup ("");
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (h->cfg,
-                                             "arm",
-                                             "OPTIONS",
-                                             &lopostfix))
+      GNUNET_CONFIGURATION_get_value_filename (h->cfg,
+                                               "arm",
+                                               "OPTIONS",
+                                               &lopostfix))
     lopostfix = GNUNET_strdup ("");
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (h->cfg,
-                                             "arm",
-                                             "BINARY",
-                                             &cbinary))
+      GNUNET_CONFIGURATION_get_value_filename (h->cfg,
+                                               "arm",
+                                               "BINARY",
+                                               &cbinary))
   {
     GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING,
                                "arm",
index 21fbdca43c2e72432e81302698044d3b5bfc6b24..df426bb48d1da4e45eb4b1e4604cd1665a6faf74 100644 (file)
@@ -444,16 +444,16 @@ start_process (struct ServiceList *sl,
 
   /* obtain configuration */
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (cfg,
-                                             sl->name,
-                                             "PREFIX",
-                                             &loprefix))
+      GNUNET_CONFIGURATION_get_value_filename (cfg,
+                                               sl->name,
+                                               "PREFIX",
+                                               &loprefix))
     loprefix = GNUNET_strdup (prefix_command);
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (cfg,
-                                             sl->name,
-                                             "OPTIONS",
-                                             &options))
+      GNUNET_CONFIGURATION_get_value_filename (cfg,
+                                               sl->name,
+                                               "OPTIONS",
+                                               &options))
     options = NULL;
 
   {
@@ -1482,15 +1482,22 @@ setup_service (void *cls,
   if (strcasecmp (section, "arm") == 0)
     return;
   if (GNUNET_OK !=
-      GNUNET_CONFIGURATION_get_value_string (cfg, section, "BINARY", &binary))
+      GNUNET_CONFIGURATION_get_value_filename (cfg,
+                                               section,
+                                               "BINARY",
+                                               &binary))
   {
     /* not a service section */
     return;
   }
   if ((GNUNET_YES ==
-       GNUNET_CONFIGURATION_have_value (cfg, section, "USER_SERVICE")) &&
+       GNUNET_CONFIGURATION_have_value (cfg,
+                                        section,
+                                        "USER_SERVICE")) &&
       (GNUNET_YES ==
-       GNUNET_CONFIGURATION_get_value_yesno (cfg, section, "USER_SERVICE")))
+       GNUNET_CONFIGURATION_get_value_yesno (cfg,
+                                             section,
+                                             "USER_SERVICE")))
   {
     if (GNUNET_NO == start_user)
     {