summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irmd/configfile.c5
-rw-r--r--src/irmd/main.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/irmd/configfile.c b/src/irmd/configfile.c
index 35ea8659..35f526a1 100644
--- a/src/irmd/configfile.c
+++ b/src/irmd/configfile.c
@@ -820,8 +820,8 @@ int irm_configure(const char * path)
rp = realpath(path, NULL);
if (rp == NULL) {
- log_warn("Failed to resolve path for %s", path);
- return 0;
+ log_err("Failed to resolve path for %s", path);
+ goto fail_resolve;
}
log_info("Reading configuration from file %s", rp);
@@ -846,6 +846,7 @@ int irm_configure(const char * path)
fclose(fp);
fail_fopen:
free(rp);
+ fail_resolve:
return -1;
}
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 2de244b7..6e7e3d15 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -2763,7 +2763,7 @@ static int irm_init(void)
static void usage(void)
{
printf("Usage: irmd \n"
-#ifdef OUROBOROS_CONFIG_INI
+#ifdef HAVE_TOML
" [--config <path> (Path to configuration file)]\n"
#endif
" [--stdout (Log to stdout instead of system log)]\n"