summaryrefslogtreecommitdiffstats
path: root/source4/lib/ldb/modules
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-01 21:32:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:22 -0500
commitf14f4fd7068e0ce55350c713d1925680876606bb (patch)
treefa2d5dd4b9932d2b30657e8e2ba86750370badb7 /source4/lib/ldb/modules
parent08f630be8230ce061badd84bef952d5753afdff0 (diff)
downloadsamba-f14f4fd7068e0ce55350c713d1925680876606bb.tar.gz
samba-f14f4fd7068e0ce55350c713d1925680876606bb.tar.xz
samba-f14f4fd7068e0ce55350c713d1925680876606bb.zip
r9918: 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. (This used to be commit c61efb2ff851f8f55b4747c8068c7e780083e35c)
Diffstat (limited to 'source4/lib/ldb/modules')
-rw-r--r--source4/lib/ldb/modules/rdn_name.c4
-rw-r--r--source4/lib/ldb/modules/timestamps.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/modules/rdn_name.c b/source4/lib/ldb/modules/rdn_name.c
index d59205c6e45..09e9c728119 100644
--- a/source4/lib/ldb/modules/rdn_name.c
+++ b/source4/lib/ldb/modules/rdn_name.c
@@ -159,12 +159,12 @@ static int rdn_name_modify_record(struct ldb_module *module, const struct ldb_me
/* 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);
diff --git a/source4/lib/ldb/modules/timestamps.c b/source4/lib/ldb/modules/timestamps.c
index 4819e0466b8..f7125052114 100644
--- a/source4/lib/ldb/modules/timestamps.c
+++ b/source4/lib/ldb/modules/timestamps.c
@@ -162,7 +162,7 @@ static int timestamps_modify_record(struct ldb_module *module, const struct ldb_
/* 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);