From c30e91863c8347ffcc8bfa9b271810abac6681c4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 21 Jun 2007 01:28:33 +0000 Subject: r23557: Ensure that we don't reorder the objectClass list, if we don't have any subclasses loaded yet, or none are applicable. This fixes MMC so that it at least displays the Samba domain as a domain, but there is still work to be done. Andrew Bartlett (This used to be commit b96b7b623dbc55a4bcf1149347823911a17e717f) --- source4/lib/ldb/modules/objectclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb/modules') diff --git a/source4/lib/ldb/modules/objectclass.c b/source4/lib/ldb/modules/objectclass.c index 1690af644c..801dfa67c2 100644 --- a/source4/lib/ldb/modules/objectclass.c +++ b/source4/lib/ldb/modules/objectclass.c @@ -137,9 +137,9 @@ static int objectclass_sort(struct ldb_module *module, /* this is the root of the tree. We will start * looking for subclasses from here */ if (ldb_attr_cmp("top", current->objectclass) == 0) { - DLIST_ADD(parent_class, current); + DLIST_ADD_END(parent_class, current, struct class_list *); } else { - DLIST_ADD(unsorted, current); + DLIST_ADD_END(unsorted, current, struct class_list *); } } -- cgit