summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2010-06-30 21:37:31 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2010-06-30 21:37:31 +0000
commit6cd9b9851aa258e108a23fb8fca4e4bcd996fdbf (patch)
treea09bae8eb138163495c1bd484bea03202bb07b0e /usr.sbin
parentc6d2e02b7dfafd7c9d786c24ee7261c2b9e5c0eb (diff)
Don't compact and reindex referral namespaces.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldapctl/ldapctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldapctl/ldapctl.c b/usr.sbin/ldapctl/ldapctl.c
index 98d072a5ce0..f6af96a52fd 100644
--- a/usr.sbin/ldapctl/ldapctl.c
+++ b/usr.sbin/ldapctl/ldapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapctl.c,v 1.3 2010/06/23 16:22:29 jmc Exp $ */
+/* $OpenBSD: ldapctl.c,v 1.4 2010/06/30 21:37:30 martinh Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
@@ -124,7 +124,7 @@ compact_namespaces(void)
struct namespace *ns;
TAILQ_FOREACH(ns, &conf->namespaces, next)
- if (compact_namespace(ns) != 0)
+ if (SLIST_EMPTY(&ns->referrals) && compact_namespace(ns) != 0)
return -1;
return 0;
@@ -217,7 +217,7 @@ index_namespaces(void)
struct namespace *ns;
TAILQ_FOREACH(ns, &conf->namespaces, next)
- if (index_namespace(ns) != 0)
+ if (SLIST_EMPTY(&ns->referrals) && index_namespace(ns) != 0)
return -1;
return 0;