diff options
Diffstat (limited to 'src/irmd/configfile.c')
-rw-r--r-- | src/irmd/configfile.c | 5 |
1 files changed, 3 insertions, 2 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; } |