Fix prev commit, reset parent == slap_entry_root

This commit is contained in:
Howard Chu 2005-09-28 16:08:01 +00:00
parent 0f9ad702c3
commit 1769485868

View File

@ -163,10 +163,15 @@ ldbm_back_modrdn(
}
/* check parent for "children" acl */
if ( ! access_allowed( op, p, children, NULL,
rs->sr_err = access_allowed( op, p, children, NULL,
op->oq_modrdn.rs_newSup != NULL ?
ACL_WDEL : ACL_WRITE,
NULL ) )
NULL );
if ( BER_BVISEMPTY( &p_ndn ))
p = NULL;
if ( !rs->sr_err )
{
Debug( LDAP_DEBUG_TRACE, "no access to parent\n", 0,
0, 0 );
@ -176,9 +181,6 @@ ldbm_back_modrdn(
goto return_results;
}
if ( BER_BVISEMPTY( &p_ndn ))
p = NULL;
Debug( LDAP_DEBUG_TRACE,
"ldbm_back_modrdn: wr to children of entry %s OK\n",
p_ndn.bv_val, 0, 0 );