diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-04-16 09:09:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-04-16 09:09:54 +0000 |
commit | 3d08d8004c93a53b32f6a977d32fc92569a96023 (patch) | |
tree | 65f7f22578a18da69f7a74a0bfd7290f27281eb2 /nscd | |
parent | 5d15fc5c3597cfaac178814941662b6f8d015804 (diff) | |
download | glibc-3d08d8004c93a53b32f6a977d32fc92569a96023.zip glibc-3d08d8004c93a53b32f6a977d32fc92569a96023.tar.gz glibc-3d08d8004c93a53b32f6a977d32fc92569a96023.tar.bz2 |
Update file_mtime after deciding to flush the cache.
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/cache.c | 7 |
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; + } } } |