From 3d08d8004c93a53b32f6a977d32fc92569a96023 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 Apr 1999 09:09:54 +0000 Subject: Update file_mtime after deciding to flush the cache. --- nscd/cache.c | 7 +++++-- 1 file 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; + } } } -- cgit 1.4.1