Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/referint
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23095
Modified Files:
referint.c
Log Message:
Resolves: bug 431607
Description: referential integrity plugin incorrectly treats "rename"
operations
Fix Description: join RDNs with "," instead of ", " to make the new DN
- thanks to Andrey Ivanov (andrey.ivanov(a)polytechnique.fr)
Index: referint.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/referint/referint.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- referint.c 15 Oct 2008 06:29:57 -0000 1.8
+++ referint.c 13 Feb 2009 19:41:26 -0000 1.9
@@ -401,8 +401,8 @@
dnsize = 0;
for(x=1; dnParts[x] != NULL; x++)
{
- /* +2 for space and comma adding later */
- dnsize += strlen(dnParts[x]) + 2;
+ /* +1 for comma adding later */
+ dnsize += strlen(dnParts[x]) + 1;
}
/* add the newrDN length */
dnsize += strlen(newrDN) + 1;
@@ -411,7 +411,7 @@
strcat(newDN, newrDN);
for(x=1; dnParts[x] != NULL; x++)
{
- strcat(newDN, ", ");
+ strcat(newDN, ",");
strcat(newDN, dnParts[x]);
}
Show replies by date