]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/modrdn.c
Code clean-up.
[openldap] / servers / slapd / back-ldbm / modrdn.c
index cf2e9751aac28e1ed90fa5e699fc177c09bd33d4..f6ec2248fd6bb9162245294d1588fc823f957c8e 100644 (file)
@@ -80,7 +80,7 @@ ldbm_back_modrdn(
                    + 3 );
                if ( dn_type( e->e_dn ) == DN_X500 ) {
                        strcpy( new_dn, newrdn );
-                       strcat( new_dn, ", " );
+                       strcat( new_dn, "," );
                        strcat( new_dn, p_dn );
                } else {
                        char *s;
@@ -145,8 +145,9 @@ ldbm_back_modrdn(
        free( e->e_ndn );
        e->e_dn = new_dn;
        e->e_ndn = new_ndn;
+       (void) cache_update_entry( &li->li_cache, e );
 
-       /* XXX
+       /* 
         * At some point here we need to update the attribute values in
         * the entry itself that were effected by this RDN change
         * (respecting the value of the deleteoldrdn parameter).