]> git.sur5r.net Git - openldap/commitdiff
Don't generate schema entries for include files that didn't define schema
authorHoward Chu <hyc@openldap.org>
Mon, 12 Mar 2007 22:47:43 +0000 (22:47 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 12 Mar 2007 22:47:43 +0000 (22:47 +0000)
elements. Use proper directory separator on Windows

servers/slapd/bconfig.c

index 09ed0a919381ace55b167e7470ae802cb6429adf..76210b8ba53fec31c71c6e0f5fa605423e48251f 100644 (file)
@@ -5419,7 +5419,10 @@ config_build_schema_inc( ConfigArgs *c, CfEntryInfo *ceparent,
        struct berval bv;
 
        for (; cf; cf=cf->c_sibs, c->depth++) {
+               if ( !cf->c_at_head && !cf->c_cr_head && !cf->c_oc_head &&
+                       !cf->c_om_head ) continue;
                c->value_dn.bv_val = c->log;
+               LUTIL_SLASHPATH( cf->c_file.bv_val );
                bv.bv_val = strrchr(cf->c_file.bv_val, LDAP_DIRSEP[0]);
                if ( !bv.bv_val ) {
                        bv = cf->c_file;