mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Don't generate schema entries for include files that didn't define schema
elements. Use proper directory separator on Windows
This commit is contained in:
parent
7cca5d1cef
commit
0d5a53815a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user