s3: Fix incorrect rc check of nscd_flush_cache.
authorJim McDonough <jmcd@samba.org>
Thu, 29 Oct 2009 15:11:43 +0000 (11:11 -0400)
committerJim McDonough <jmcd@samba.org>
Thu, 29 Oct 2009 15:11:43 +0000 (11:11 -0400)
At least this only resulted in an incorrect debug message.

source3/lib/util_nscd.c

index f019bdd70bfa8a707c4156376ed5a484006f4b00..4feab3b8ace4c70825fae6ad9049b2dc42f117eb 100644 (file)
@@ -22,7 +22,7 @@
 static void smb_nscd_flush_cache(const char *service)
 {
 #ifdef HAVE_NSCD_FLUSH_CACHE
-       if (!nscd_flush_cache(service)) {
+       if (nscd_flush_cache(service)) {
                DEBUG(10,("failed to flush nscd cache for '%s' service: %s. "
                          "Is nscd running?\n",
                          service, strerror(errno)));