Update file_mtime after deciding to flush the cache.
authordrepper <drepper>
Fri, 16 Apr 1999 09:09:54 +0000 (09:09 +0000)
committerdrepper <drepper>
Fri, 16 Apr 1999 09:09:54 +0000 (09:09 +0000)
nscd/cache.c

index d034bcb..52ef038 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;
+           }
        }
     }