diff options
Diffstat (limited to 'src/authdb.c')
-rw-r--r-- | src/authdb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/authdb.c b/src/authdb.c index c9a5dd3..53b015f 100644 --- a/src/authdb.c +++ b/src/authdb.c @@ -357,16 +357,20 @@ int adbc_refresh(struct authdb_config *cfg, time_t now) if (cfg->last_check != 0 && cfg->last_check + 2*60 > now) return 0; - if (stat(squark_config, &st) != 0) + if (stat(squark_config, &st) != 0) { + report_error("Error occurred while checking attributes of config file: %s\n", strerror(errno)); return -1; + } cfg->last_check = now; if (cfg->last_change == st.st_ctime) return 0; in = fopen(squark_config, "r"); - if (in == NULL) + if (in == NULL) { + report_error("Error occurred while opening config file: %s\n", strerror(errno)); return -1; + } cfg->last_change = st.st_ctime; cfg->block_categories = 0; |