mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#8016 return errmsg for unknown envflags
This commit is contained in:
parent
67a65ec701
commit
9266a43d6c
@ -419,6 +419,9 @@ mdb_cf_gen( ConfigArgs *c )
|
||||
mdb->mi_dbenv_flags ^= mdb_envflags[i].mask;
|
||||
} else {
|
||||
/* unknown keyword */
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s: unknown keyword \"%s\"",
|
||||
c->argv[0], c->argv[i] );
|
||||
Debug( LDAP_DEBUG_CONFIG, "%s %s\n", c->log, c->cr_msg, 0 );
|
||||
rc = 1;
|
||||
}
|
||||
}
|
||||
@ -621,7 +624,10 @@ mdb_cf_gen( ConfigArgs *c )
|
||||
mdb->mi_dbenv_flags |= mdb_envflags[j].mask;
|
||||
} else {
|
||||
/* unknown keyword */
|
||||
rc = 1;
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg ), "%s: unknown keyword \"%s\"",
|
||||
c->argv[0], c->argv[i] );
|
||||
Debug( LDAP_DEBUG_ANY, "%s %s\n", c->log, c->cr_msg, 0 );
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user