From adf854cd4a2e337f67493bd169e403d41db69444 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 4 Aug 2021 21:49:21 +0200 Subject: load config file from correct location --- src/auditor/taler-auditor-exchange.c | 8 +++++++- src/auditor/taler-auditor-httpd.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src/auditor') diff --git a/src/auditor/taler-auditor-exchange.c b/src/auditor/taler-auditor-exchange.c index b8b8428e7..b751ea9a4 100644 --- a/src/auditor/taler-auditor-exchange.c +++ b/src/auditor/taler-auditor-exchange.c @@ -104,7 +104,13 @@ main (int argc, return EXIT_INVALIDARGUMENT; } 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 (); GNUNET_log (GNUNET_ERROR_TYPE_INFO, 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, -- cgit v1.2.3