svn commit: samba r9918 - in branches/SAMBA_4_0/source/lib/ldb/modules: .

jelmer at samba.org jelmer at samba.org
Thu Sep 1 21:32:44 GMT 2005


Author: jelmer
Date: 2005-09-01 21:32:43 +0000 (Thu, 01 Sep 2005)
New Revision: 9918

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9918

Log:
Fix two copy-n-paste bugs that were preventing the modification 
of special DN's when the rdn_name or timestamps modules were in use.

Modified:
   branches/SAMBA_4_0/source/lib/ldb/modules/rdn_name.c
   branches/SAMBA_4_0/source/lib/ldb/modules/timestamps.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/modules/rdn_name.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/rdn_name.c	2005-09-01 21:30:50 UTC (rev 9917)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/rdn_name.c	2005-09-01 21:32:43 UTC (rev 9918)
@@ -159,12 +159,12 @@
 
 	/* do not manipulate our control entries */
 	if (ldb_dn_is_special(msg->dn)) {
-		return ldb_next_add_record(module, msg);
+		return ldb_next_modify_record(module, msg);
 	}
 
 	/* Perhaps someone above us knows better */
 	if ((attribute = rdn_name_find_attribute(msg, "name")) != NULL ) {
-		return ldb_next_add_record(module, msg);
+		return ldb_next_modify_record(module, msg);
 	}
 
 	msg2 = talloc(module, struct ldb_message);

Modified: branches/SAMBA_4_0/source/lib/ldb/modules/timestamps.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/modules/timestamps.c	2005-09-01 21:30:50 UTC (rev 9917)
+++ branches/SAMBA_4_0/source/lib/ldb/modules/timestamps.c	2005-09-01 21:32:43 UTC (rev 9918)
@@ -162,7 +162,7 @@
 
 	/* do not manipulate our control entries */
 	if (ldb_dn_is_special(msg->dn)) {
-		return ldb_next_add_record(module, msg);
+		return ldb_next_modify_record(module, msg);
 	}
 
 	timeval = time(NULL);



More information about the samba-cvs mailing list