+1999-04-16 Ulrich Drepper <drepper@cygnus.com>
+
+ * nscd/cache.c (prune_cache): Only disable file checking for
+ future if the file does not exist.
+ Update file_mtime if cache was flushed.
+
1999-04-15 David S. Miller <davem@redhat.com>
* sysdeps/sparc/sparc32/strcat.S: Avoid using register g6.
if (stat (table->filename, &st) < 0)
{
char buf[128];
- /* We cannot stat() the file, disable file checking. */
+ /* We cannot stat() the file, disable file checking if the
+ file does not exist. */
dbg_log (_("cannot stat() file `%s': %s"),
table->filename, strerror_r (errno, buf, sizeof (buf)));
- table->check_file = 0;
+ if (errno == ENOENT)
+ table->check_file = 0;
}
else
{
{
/* The file changed. Invalidate all entries. */
now = LONG_MAX;
- st.st_mtime = table->file_mtime;
+ table->file_mtime = st.st_mtime;
}
}
}