From: Kurt Zeilenga Date: Thu, 19 Apr 2001 19:29:00 +0000 (+0000) Subject: Previously added modrdn restriction to restrictive. Need to X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1468 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da0e6d3d984d8fb16367ffd7f7f66a277d371ac8;p=openldap Previously added modrdn restriction to restrictive. Need to check newSuperior. --- diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 2d8b4b0157..d950779518 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -478,7 +478,9 @@ ldbm_back_modrdn( goto return_results; } - if ( strcasecmp( old_rdn_type, new_rdn_type ) != 0 ) { + if ( newSuperior == NULL + && strcasecmp( old_rdn_type, new_rdn_type ) != 0 ) + { /* Not a big deal but we may say something */ #ifdef NEW_LOGGING LDAP_LOG(( "backend", LDAP_LEVEL_INFO,