aboutsummaryrefslogtreecommitdiff
path: root/nscd/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/cache.c')
-rw-r--r--nscd/cache.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nscd/cache.c b/nscd/cache.c
index d034bcb051..52ef0383f7 100644
--- a/nscd/cache.c
+++ b/nscd/cache.c
@@ -150,8 +150,11 @@ prune_cache (struct database *table, time_t now)
else
{
if (st.st_mtime != table->file_mtime)
- /* The file changed. Invalidate all entries. */
- now = LONG_MAX;
+ {
+ /* The file changed. Invalidate all entries. */
+ now = LONG_MAX;
+ st.st_mtime = table->file_mtime;
+ }
}
}