From: Ulrich Drepper Date: Fri, 16 Apr 1999 09:09:54 +0000 (+0000) Subject: Update file_mtime after deciding to flush the cache. X-Git-Tag: cvs/glibc-2_1_1~151 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d08d8004c93a53b32f6a977d32fc92569a96023;p=thirdparty%2Fglibc.git Update file_mtime after deciding to flush the cache. --- diff --git a/nscd/cache.c b/nscd/cache.c index d034bcb051f..52ef0383f7f 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; + } } }