summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 77cd5f938..1e9200e52 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 ddf3de91f..26ac2f09d 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);