diff options
author | Pavel Reichl <pavel.reichl@redhat.com> | 2013-11-19 11:24:31 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-27 10:46:14 +0100 |
commit | b5ee224324b0158641d9b110f81d2bc6eddddc13 (patch) | |
tree | 4d005ce00136288a5e266286ea186ff5af6ddeac /src/confdb/confdb_setup.c | |
parent | 9f39fa303b328c4e82ffd6b3d8dfa9b6640222cd (diff) | |
download | sssd-b5ee224324b0158641d9b110f81d2bc6eddddc13.tar.gz sssd-b5ee224324b0158641d9b110f81d2bc6eddddc13.tar.xz sssd-b5ee224324b0158641d9b110f81d2bc6eddddc13.zip |
monitor: Specific error message for missing sssd.conf
Specific error message is logged for missing sssd.conf file. New sssd specific
error value is introduced for this case.
Resolves:
https://fedorahosted.org/sssd/ticket/2156
Diffstat (limited to 'src/confdb/confdb_setup.c')
-rw-r--r-- | src/confdb/confdb_setup.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/confdb/confdb_setup.c b/src/confdb/confdb_setup.c index b13553eaa..2a34e4f7a 100644 --- a/src/confdb/confdb_setup.c +++ b/src/confdb/confdb_setup.c @@ -155,8 +155,13 @@ int confdb_init_db(const char *config_file, struct confdb_ctx *cdb) /* Open config file */ ret = sss_ini_config_file_open(init_data, config_file); if (ret != EOK) { - DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to open configuration file.\n")); - ret = EIO; + DEBUG(SSSDBG_TRACE_FUNC, + ("sss_ini_config_file_open failed: %s [%d]\n", strerror(ret), + ret)); + if (ret == ENOENT) { + /* sss specific error denoting missing configuration file */ + ret = ERR_MISSING_CONF; + } goto done; } |