summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-03-19 14:17:40 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-22 08:34:16 -0400
commite16c6e35fc3afa903e522114115c5ac1987a902a (patch)
treedf5df5145fcb65e822120260f58de13b71cc22e9 /src
parentc621bea09e43f702ef96d0fdedf7dc89dd6adaf5 (diff)
downloadsssd-e16c6e35fc3afa903e522114115c5ac1987a902a.tar.gz
sssd-e16c6e35fc3afa903e522114115c5ac1987a902a.tar.bz2
sssd-e16c6e35fc3afa903e522114115c5ac1987a902a.zip
Fix config file error message
Diffstat (limited to 'src')
-rw-r--r--src/confdb/confdb_setup.c2
-rw-r--r--src/monitor/monitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/confdb/confdb_setup.c b/src/confdb/confdb_setup.c
index 77cd5f93..1e9200e5 100644
--- a/src/confdb/confdb_setup.c
+++ b/src/confdb/confdb_setup.c
@@ -290,7 +290,7 @@ int confdb_init_db(const char *config_file, struct confdb_ctx *cdb)
if (ret != EOK) {
DEBUG(1, ("Permission check on config file failed.\n"));
talloc_zfree(tmp_ctx);
- return EIO;
+ return EPERM;
}
/* Determine if the conf file has changed since we last updated
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index ddf3de91..26ac2f09 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -2257,7 +2257,7 @@ int main(int argc, const char *argv[])
/* Parse config file, fail if cannot be done */
ret = load_configuration(tmp_ctx, config_file, &monitor);
if (ret != EOK) {
- if (ret == EIO) {
+ if (ret == EPERM) {
DEBUG(1, ("Cannot read configuration file %s\n", config_file));
ERROR("Cannot read config file %s, please check if permissions "
"are 0600 and the file is owned by root.root\n", config_file);