summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-07-09 12:31:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:11 -0500
commit2d2cde7d95e0871ea66ce8186a54c3b28834051b (patch)
treef0cc4a6e2af5bf04d5891d923637e1603d8c307f /source4/lib
parentb7b17c654da08e2abcad0e127ed30bb6991e64ab (diff)
downloadsamba-2d2cde7d95e0871ea66ce8186a54c3b28834051b.tar.gz
samba-2d2cde7d95e0871ea66ce8186a54c3b28834051b.tar.bz2
samba-2d2cde7d95e0871ea66ce8186a54c3b28834051b.zip
r23762: Fix DN renames over LDAP, and instrument the partition module. Add a
test to prove the behaviour of LDAP renames etc. Fix LDB to return correct error code when failing to rename one DN onto another. Andrew Bartlett (This used to be commit 3f3da9c4710b7752ed97f55c2fc3d32a63d352af)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 6dff3942a8..335e7d540e 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -857,9 +857,8 @@ static int ltdb_rename(struct ldb_module *module, struct ldb_request *req)
goto done;
}
- tret = ltdb_add_internal(module, msg);
- if (tret != LDB_SUCCESS) {
- ret = LDB_ERR_OPERATIONS_ERROR;
+ ret = ltdb_add_internal(module, msg);
+ if (ret != LDB_SUCCESS) {
goto done;
}