]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update file_mtime after deciding to flush the cache.
authorUlrich Drepper <drepper@redhat.com>
Fri, 16 Apr 1999 09:09:54 +0000 (09:09 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 16 Apr 1999 09:09:54 +0000 (09:09 +0000)
nscd/cache.c

index d034bcb051ff32626c048f4c341c8b0cc91ac172..52ef0383f7fd5bc524c376efa3053a8f7be988be 100644 (file)
@@ -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;
+           }
        }
     }