]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* nscd/connections.c (sighup_handler): Only run prune_cache on
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Apr 2006 09:17:12 +0000 (09:17 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 27 Apr 2006 09:17:12 +0000 (09:17 +0000)
enabled databases.

ChangeLog
nscd/connections.c

index b62b22536b3ddbf8897fb04af4de75b706e0bc4f..b1361a13820196d091546ec26f11c3a5583fbb74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index a52082cba381e0410d9b230b48c0f9bea57d868d..f8e66c20a6eb9769092aca2283f555bbc84d9aee 100644 (file)
@@ -1897,13 +1897,16 @@ finish_drop_privileges (void)
 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);
 }