diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-25 18:46:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-25 18:46:43 +0000 |
commit | aa3d0dc77048dad13943dcf4a611d5131a9a01c5 (patch) | |
tree | 545b49eafd6000279cdfb2577be10b59be3eabbd /src/arm | |
parent | ca1cea453795dd8aa1b68dfb8f311bda85102a8c (diff) | |
download | gnunet-aa3d0dc77048dad13943dcf4a611d5131a9a01c5.tar.gz gnunet-aa3d0dc77048dad13943dcf4a611d5131a9a01c5.zip |
want himBHexpansion, but not path-prefixing
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/arm_api.c | 22 | ||||
-rw-r--r-- | src/arm/gnunet-service-arm.c | 32 |
2 files changed, 36 insertions, 18 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 3fcb75814..2967e62b7 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -597,17 +597,23 @@ start_arm_service (struct GNUNET_ARM_Handle *h, | |||
597 | char *lopostfix; | 597 | char *lopostfix; |
598 | 598 | ||
599 | if (GNUNET_OK != | 599 | if (GNUNET_OK != |
600 | GNUNET_CONFIGURATION_get_value_filename (h->cfg, | 600 | GNUNET_CONFIGURATION_get_value_string (h->cfg, |
601 | "arm", | 601 | "arm", |
602 | "PREFIX", | 602 | "PREFIX", |
603 | &loprefix)) | 603 | &loprefix)) |
604 | loprefix = GNUNET_strdup (""); | 604 | loprefix = GNUNET_strdup (""); |
605 | else | ||
606 | loprefix = GNUNET_CONFIGURATION_expand_dollar (h->cfg, | ||
607 | loprefix); | ||
605 | if (GNUNET_OK != | 608 | if (GNUNET_OK != |
606 | GNUNET_CONFIGURATION_get_value_filename (h->cfg, | 609 | GNUNET_CONFIGURATION_get_value_string (h->cfg, |
607 | "arm", | 610 | "arm", |
608 | "OPTIONS", | 611 | "OPTIONS", |
609 | &lopostfix)) | 612 | &lopostfix)) |
610 | lopostfix = GNUNET_strdup (""); | 613 | lopostfix = GNUNET_strdup (""); |
614 | else | ||
615 | lopostfix = GNUNET_CONFIGURATION_expand_dollar (h->cfg, | ||
616 | lopostfix); | ||
611 | if (GNUNET_OK != | 617 | if (GNUNET_OK != |
612 | GNUNET_CONFIGURATION_get_value_string (h->cfg, | 618 | GNUNET_CONFIGURATION_get_value_string (h->cfg, |
613 | "arm", | 619 | "arm", |
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 8c5113774..5bf823656 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c | |||
@@ -380,18 +380,23 @@ start_process (struct ServiceList *sl, | |||
380 | 380 | ||
381 | /* obtain configuration */ | 381 | /* obtain configuration */ |
382 | if (GNUNET_OK != | 382 | if (GNUNET_OK != |
383 | GNUNET_CONFIGURATION_get_value_filename (cfg, | 383 | GNUNET_CONFIGURATION_get_value_string (cfg, |
384 | sl->name, | 384 | sl->name, |
385 | "PREFIX", | 385 | "PREFIX", |
386 | &loprefix)) | 386 | &loprefix)) |
387 | loprefix = GNUNET_strdup (prefix_command); | 387 | loprefix = GNUNET_strdup (prefix_command); |
388 | else | ||
389 | loprefix = GNUNET_CONFIGURATION_expand_dollar (cfg, | ||
390 | loprefix); | ||
388 | if (GNUNET_OK != | 391 | if (GNUNET_OK != |
389 | GNUNET_CONFIGURATION_get_value_filename (cfg, | 392 | GNUNET_CONFIGURATION_get_value_string (cfg, |
390 | sl->name, | 393 | sl->name, |
391 | "OPTIONS", | 394 | "OPTIONS", |
392 | &options)) | 395 | &options)) |
393 | options = NULL; | 396 | options = NULL; |
394 | 397 | else | |
398 | options = GNUNET_CONFIGURATION_expand_dollar (cfg, | ||
399 | options); | ||
395 | { | 400 | { |
396 | char *new_options; | 401 | char *new_options; |
397 | char *optpos; | 402 | char *optpos; |
@@ -1555,7 +1560,8 @@ setup_service (void *cls, | |||
1555 | } | 1560 | } |
1556 | config = NULL; | 1561 | config = NULL; |
1557 | if (( (GNUNET_OK != | 1562 | if (( (GNUNET_OK != |
1558 | GNUNET_CONFIGURATION_get_value_filename (cfg, section, | 1563 | GNUNET_CONFIGURATION_get_value_filename (cfg, |
1564 | section, | ||
1559 | "CONFIG", | 1565 | "CONFIG", |
1560 | &config)) && | 1566 | &config)) && |
1561 | (GNUNET_OK != | 1567 | (GNUNET_OK != |
@@ -1744,12 +1750,18 @@ run (void *cls, | |||
1744 | "GLOBAL_PREFIX", | 1750 | "GLOBAL_PREFIX", |
1745 | &prefix_command)) | 1751 | &prefix_command)) |
1746 | prefix_command = GNUNET_strdup (""); | 1752 | prefix_command = GNUNET_strdup (""); |
1753 | else | ||
1754 | prefix_command = GNUNET_CONFIGURATION_expand_dollar (cfg, | ||
1755 | prefix_command); | ||
1747 | if (GNUNET_OK != | 1756 | if (GNUNET_OK != |
1748 | GNUNET_CONFIGURATION_get_value_string (cfg, | 1757 | GNUNET_CONFIGURATION_get_value_string (cfg, |
1749 | "ARM", | 1758 | "ARM", |
1750 | "GLOBAL_POSTFIX", | 1759 | "GLOBAL_POSTFIX", |
1751 | &final_option)) | 1760 | &final_option)) |
1752 | final_option = GNUNET_strdup (""); | 1761 | final_option = GNUNET_strdup (""); |
1762 | else | ||
1763 | final_option = GNUNET_CONFIGURATION_expand_dollar (cfg, | ||
1764 | final_option); | ||
1753 | if (GNUNET_YES == | 1765 | if (GNUNET_YES == |
1754 | GNUNET_CONFIGURATION_get_value_yesno (cfg, | 1766 | GNUNET_CONFIGURATION_get_value_yesno (cfg, |
1755 | "ARM", | 1767 | "ARM", |