aboutsummaryrefslogtreecommitdiff
path: root/src/util/program.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-16 11:10:55 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-16 11:10:55 +0000
commitd49d16a84422346630c3196e3de9727ea872371c (patch)
treeb22d333f140a1476f793a76fec824c17ad4bccff /src/util/program.c
parent1d3dc794d9a5e82375995af14e91668430a31293 (diff)
downloadgnunet-d49d16a84422346630c3196e3de9727ea872371c.tar.gz
gnunet-d49d16a84422346630c3196e3de9727ea872371c.zip
support overriding GNUNET_DEFAULT_USER_CONFIG_FILE
Diffstat (limited to 'src/util/program.c')
-rw-r--r--src/util/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/program.c b/src/util/program.c
index a313ce87e..bf7885fe9 100644
--- a/src/util/program.c
+++ b/src/util/program.c
@@ -225,7 +225,7 @@ GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName,
225 DIR_SEPARATOR_STR, 225 DIR_SEPARATOR_STR,
226 GNUNET_OS_project_data_get ()->config_file); 226 GNUNET_OS_project_data_get ()->config_file);
227 else 227 else
228 cfg_fn = GNUNET_strdup (GNUNET_DEFAULT_USER_CONFIG_FILE); 228 cfg_fn = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
229 lpfx = GNUNET_strdup (binaryName); 229 lpfx = GNUNET_strdup (binaryName);
230 if (NULL != (spc = strstr (lpfx, " "))) 230 if (NULL != (spc = strstr (lpfx, " ")))
231 *spc = '\0'; 231 *spc = '\0';