aboutsummaryrefslogtreecommitdiff
path: root/nscd/cache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-16 09:09:54 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-16 09:09:54 +0000
commit3d08d8004c93a53b32f6a977d32fc92569a96023 (patch)
tree65f7f22578a18da69f7a74a0bfd7290f27281eb2 /nscd/cache.c
parent5d15fc5c3597cfaac178814941662b6f8d015804 (diff)
downloadglibc-3d08d8004c93a53b32f6a977d32fc92569a96023.zip
glibc-3d08d8004c93a53b32f6a977d32fc92569a96023.tar.gz
glibc-3d08d8004c93a53b32f6a977d32fc92569a96023.tar.bz2
Update file_mtime after deciding to flush the cache.
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 d034bcb..52ef038 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;
+ }
}
}