diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 21:49:21 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 21:49:21 +0200 |
commit | adf854cd4a2e337f67493bd169e403d41db69444 (patch) | |
tree | 3030f259e616a809b7f5e1886abf64da16a3e731 /src/auditor/taler-auditor-httpd.c | |
parent | b83ec3a794d9ef8fbd689fdf1955acac7af0684d (diff) | |
download | exchange-adf854cd4a2e337f67493bd169e403d41db69444.tar.xz |
load config file from correct location
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c index 1824167fe..da17e7698 100644 --- a/src/auditor/taler-auditor-httpd.c +++ b/src/auditor/taler-auditor-httpd.c @@ -591,7 +591,13 @@ main (int argc, (NULL == loglev) ? "INFO" : loglev, logfile)); if (NULL == cfgfile) - cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file); + cfgfile = GNUNET_CONFIGURATION_default_filename (); + if (NULL == cfgfile) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Can't find default configuration file.\n"); + return EXIT_NOTCONFIGURED; + } cfg = GNUNET_CONFIGURATION_create (); if (GNUNET_SYSERR == GNUNET_CONFIGURATION_load (cfg, |