summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-10-25 11:07:30 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:31 +0100
commit33201d1df27c1ab6b1252b2de3c164a3330c9cf8 (patch)
tree8f48c31a06ade383009baf9961290ed194d20ab2
parent74a2b05793851de3bcc12980221e238da5310d8b (diff)
downloadsamba-33201d1df27c1ab6b1252b2de3c164a3330c9cf8.tar.gz
samba-33201d1df27c1ab6b1252b2de3c164a3330c9cf8.tar.bz2
samba-33201d1df27c1ab6b1252b2de3c164a3330c9cf8.zip
r25729: Fix silly regression in the subtree_rename - I broke normal renames.
Bug 5041 Andrew Bartlett (This used to be commit 7e68051bb7a9ac5f1b232c32b7614db61c3c1bc4)
-rw-r--r--source4/dsdb/samdb/ldb_modules/subtree_rename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/subtree_rename.c b/source4/dsdb/samdb/ldb_modules/subtree_rename.c
index 5b0916fdbf..72857cb864 100644
--- a/source4/dsdb/samdb/ldb_modules/subtree_rename.c
+++ b/source4/dsdb/samdb/ldb_modules/subtree_rename.c
@@ -97,7 +97,7 @@ static int subtree_rename_search_callback(struct ldb_context *ldb, void *context
/* Only entries are interesting, and we handle the case of the parent seperatly */
if (ares->type == LDB_REPLY_ENTRY
- && ldb_dn_compare(ares->message->dn, ac->orig_req->op.rename.olddn) == 0) {
+ && ldb_dn_compare(ares->message->dn, ac->orig_req->op.rename.olddn) != 0) {
/* And it is an actual entry: now create a rename from it */
int ret;