Fix add to topless root.

This commit is contained in:
Kurt Zeilenga 1999-08-14 01:19:29 +00:00
parent 26437c46b0
commit aec2f1f17e
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ bdb2i_back_add_internal(
pdn = dn_parent( be, e->e_ndn );
if( pdn != NULL && *pdn != '\0' && !be_issuffix(be, "") ) {
if( pdn != NULL && *pdn != '\0' ) {
Entry *matched = NULL;
assert( *pdn != '\0' );
@ -155,7 +155,7 @@ bdb2i_back_add_internal(
}
/* no parent, must be adding entry to root */
if ( ! be_isroot( be, op->o_ndn ) ) {
if ( !be_isroot( be, op->o_ndn ) && !be_issuffix(be, "") ) {
Debug( LDAP_DEBUG_TRACE, "%s add denied\n",
pdn == NULL ? "suffix" : "entry at root",
0, 0 );

View file

@ -62,7 +62,7 @@ ldbm_back_add(
pdn = dn_parent( be, e->e_ndn );
if( pdn != NULL && *pdn != '\0' && !be_issuffix(be, "") ) {
if( pdn != NULL && *pdn != '\0' ) {
Entry *matched = NULL;
assert( *pdn != '\0' );
@ -167,7 +167,7 @@ ldbm_back_add(
}
/* no parent, must be adding entry to root */
if ( ! be_isroot( be, op->o_ndn ) ) {
if ( !be_isroot( be, op->o_ndn ) && !be_issuffix( be, "" ) ) {
ldap_pvt_thread_mutex_unlock(&li->li_add_mutex);
Debug( LDAP_DEBUG_TRACE, "%s add denied\n",