diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-06-21 01:28:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:53:26 -0500 |
commit | c30e91863c8347ffcc8bfa9b271810abac6681c4 (patch) | |
tree | f7233b89d58fb5229232e18ceec8dfcf2c6d933d /source4/lib/ldb/modules/objectclass.c | |
parent | d291b8bf933e7595ac2967602d90918c286e3429 (diff) | |
download | samba-c30e91863c8347ffcc8bfa9b271810abac6681c4.tar.gz samba-c30e91863c8347ffcc8bfa9b271810abac6681c4.tar.bz2 samba-c30e91863c8347ffcc8bfa9b271810abac6681c4.zip |
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)
Diffstat (limited to 'source4/lib/ldb/modules/objectclass.c')
-rw-r--r-- | source4/lib/ldb/modules/objectclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 *); } } |