aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-10-28 09:36:31 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-10-28 09:36:31 +0000
commit50a4192766dd96f383020f9b2989b047155e4db3 (patch)
tree231b9aee9dceabff85cd7f21f873e08547ad86c0 /src/util/configuration.c
parentd05e9a0f325114e35d5687aebeeab7e37bc6c49c (diff)
downloadgnunet-50a4192766dd96f383020f9b2989b047155e4db3.tar.gz
gnunet-50a4192766dd96f383020f9b2989b047155e4db3.zip
- warn upon failed $-expansions
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 195c70aa9..80ad02e36 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -1163,11 +1163,13 @@ expand_dollar (const struct GNUNET_CONFIGURATION_Handle *cfg,
1163 } 1163 }
1164 if (NULL == env) 1164 if (NULL == env)
1165 { 1165 {
1166 start = GNUNET_strdup (start);
1166 if (erased_pos) 1167 if (erased_pos)
1167 *erased_pos = erased_char; 1168 *erased_pos = erased_char;
1168 LOG (GNUNET_ERROR_TYPE_DEBUG, 1169 LOG (GNUNET_ERROR_TYPE_WARNING,
1169 "Expanded to `%s' (returning orig)\n", 1170 _("Failed to expand `%s' in `%s' as it is neither found in [PATHS] nor defined as an environmental variable\n"),
1170 orig); 1171 start, orig);
1172 GNUNET_free (start);
1171 return orig; 1173 return orig;
1172 } 1174 }
1173 prefix = GNUNET_strdup (env); 1175 prefix = GNUNET_strdup (env);