- rc = dnParent( e->e_nname.bv_val, &pdn.bv_val );
- if ( rc != LDAP_SUCCESS ) {
- Debug( LDAP_DEBUG_ANY, "=> bdb_tool_entry_reindex: "
- "dnParent(\"%s\") failed\n",
- e->e_nname.bv_val, 0, 0 );
- goto done;
- }
- pdn.bv_len = e->e_nname.bv_len - (pdn.bv_val - e->e_nname.bv_val);