about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-01-05 09:08:03 +0000
committerJakub Jelinek <jakub@redhat.com>2008-01-05 09:08:03 +0000
commit0fbfe2f7d86586aaba6e9e37c2dd081fba7a09dd (patch)
tree2ff5c03d69cd6ad931149b4a121b9927795e5838 /nscd
parent8726a12e05ba81ee72fe99bdf0513cc71fa46e6a (diff)
downloadglibc-0fbfe2f7d86586aaba6e9e37c2dd081fba7a09dd.tar.gz
glibc-0fbfe2f7d86586aaba6e9e37c2dd081fba7a09dd.tar.xz
glibc-0fbfe2f7d86586aaba6e9e37c2dd081fba7a09dd.zip
[BZ #5112]
* nscd/connections.c (restart): Fix condition.
2008-01-05  Jakub Jelinek  <jakub@redhat.com>

	[BZ #5112]
	* nscd/connections.c (restart): Fix condition.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index abd84b9b63..8140e96821 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -1,5 +1,6 @@
 /* Inner loops of cache daemon.
-   Copyright (C) 1998-2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1998-2003, 2004, 2005, 2006, 2007, 2008
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -1297,7 +1298,7 @@ cannot change to old working directory: %s; disabling paranoia mode"),
 
   /* Synchronize memory.  */
   for (int cnt = 0; cnt < lastdb; ++cnt)
-    if (!dbs[cnt].enabled)
+    if (dbs[cnt].enabled)
       {
 	/* Make sure nobody keeps using the database.  */
 	dbs[cnt].head->timestamp = 0;