diff options
Diffstat (limited to 'src/authdb.c')
-rw-r--r-- | src/authdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/authdb.c b/src/authdb.c index 8c17ed9..ed309fe 100644 --- a/src/authdb.c +++ b/src/authdb.c @@ -347,15 +347,15 @@ int adbc_refresh(struct authdb_config *cfg, time_t now) if (stat(squark_config, &st) != 0) return -1; + cfg->last_check = now; if (cfg->last_change == st.st_ctime) return 0; - /* check timestamp */ - in = fopen(squark_config, "r"); if (in == NULL) return -1; + cfg->last_change = st.st_ctime; cfg->block_categories = 0; cfg->hard_block_categories = 0; cfg->logout_timeout = DEFAULT_LOGOUT_TIMEOUT; |