mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#3815 fix olcDbConfig parsing
This commit is contained in:
parent
9ec474db25
commit
17a4215256
@ -509,10 +509,21 @@ bdb_cf_gen(ConfigArgs *c)
|
||||
break;
|
||||
|
||||
case BDB_CONFIG: {
|
||||
char *ptr = c->line + STRLENOF("dbconfig");
|
||||
char *ptr = c->line;
|
||||
struct berval bv;
|
||||
while (!isspace(*ptr)) ptr++;
|
||||
while (isspace(*ptr)) ptr++;
|
||||
|
||||
if ( c->op == SLAP_CONFIG_ADD ) {
|
||||
ptr += STRLENOF("dbconfig");
|
||||
while (!isspace(*ptr)) ptr++;
|
||||
while (isspace(*ptr)) ptr++;
|
||||
} else {
|
||||
if (*ptr == '{') {
|
||||
ptr = strchr( ptr+1, '}');
|
||||
if (!ptr)
|
||||
return(1);
|
||||
ptr++;
|
||||
}
|
||||
}
|
||||
|
||||
if ( bdb->bi_flags & BDB_IS_OPEN ) {
|
||||
bdb->bi_flags |= BDB_UPD_CONFIG;
|
||||
|
Loading…
Reference in New Issue
Block a user