+2006-04-27 Jakub Jelinek <jakub@redhat.com>
+
+ * nscd/connections.c (sighup_handler): Only run prune_cache on
+ enabled databases.
+
2006-04-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix typo which caused
void
sighup_handler (int signum)
{
- /* Prune the password database */
+ /* Prune the password database. */
+ if (dbs[pwddb].enabled)
prune_cache (&dbs[pwddb], LONG_MAX);
- /* Prune the group database */
+ /* Prune the group database. */
+ if (dbs[grpdb].enabled)
prune_cache (&dbs[grpdb], LONG_MAX);
- /* Prune the host database */
+ /* Prune the host database. */
+ if (dbs[hstdb].enabled)
prune_cache (&dbs[hstdb], LONG_MAX);
}