/* no parent, must be adding entry to root */
if ( !be_isroot( be, op->o_ndn ) ) {
- if ( be_issuffix( be, "" ) ) {
+ if ( be_issuffix( be, "" )
+ || be_isupdate( be, op->o_ndn ) ) {
static const Entry rootp = { NOID, "", "", NULL, NULL };
p = (Entry *)&rootp;
} else {
/* no parent, must be root to delete */
if( ! be_isroot( be, op->o_ndn ) ) {
- if ( be_issuffix( be, "" ) ) {
+ if ( be_issuffix( be, "" )
+ || be_isupdate( be, op->o_ndn ) ) {
static const Entry rootp = { NOID, "", "", NULL, NULL };
p = (Entry *)&rootp;
/* no parent, must be root to modify rdn */
isroot = be_isroot( be, op->o_ndn );
if ( ! be_isroot ) {
- if ( be_issuffix( be, "" ) ) {
+ if ( be_issuffix( be, "" )
+ || be_isupdate( be, op->o_ndn ) ) {
static const Entry rootp = { NOID, "", "", NULL, NULL };
p = (Entry *)&rootp;
}
if ( ! be_isroot ) {
- if ( be_issuffix( be, "" ) ) {
+ if ( be_issuffix( be, "" )
+ || be_isupdate( be, op->o_ndn ) ) {
static const Entry rootp = { NOID, "", "", NULL, NULL };
np = (Entry *)&rootp;