Fix reversed test trying to fix bug #5713
authorAndrew Bartlett <abartlet@samba.org>
Tue, 9 Sep 2008 08:02:05 +0000 (18:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Sep 2008 08:02:05 +0000 (18:02 +1000)
(It instead ensured that only 'top' had a SUP keyword)

This clearly shows that 937b466266256d26d02cf8d48e72a26272fe8627 was
not a full or correct fix, but despite this I can no longer reproduce
the issue.  Further investigation is required.

Andrew Bartlett
(This used to be commit 95a9e9b6b84866cd300b1d19915627c6718b4dde)

source4/dsdb/schema/schema_description.c

index d780fcf34f864bec9dd3b6004b05079f2f68cef1..a40de37f8e37f2820dbfe0b017d1b15ae88c0d7f 100644 (file)
@@ -182,7 +182,7 @@ char *schema_class_description(TALLOC_CTX *mem_ctx,
                IF_NULL_FAIL_RET(schema_entry);
        }
 
                IF_NULL_FAIL_RET(schema_entry);
        }
 
-       if (subClassOf && strcasecmp(subClassOf, name) == 0) {
+       if (subClassOf && strcasecmp(subClassOf, name) != 0) {
                schema_entry = talloc_asprintf_append(schema_entry, 
                                                      "SUP %s%s", subClassOf, seperator);
                IF_NULL_FAIL_RET(schema_entry);
                schema_entry = talloc_asprintf_append(schema_entry, 
                                                      "SUP %s%s", subClassOf, seperator);
                IF_NULL_FAIL_RET(schema_entry);