summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-17 11:42:35 +1100
committerAndrew Tridgell <tridge@samba.org>2011-01-17 05:23:04 +0100
commitf334cd22101b7ce32b3382fc4d048eadd7385f2e (patch)
treeaca3e3e04700999536e27b5d01418bd150466b65 /source4/lib/ldb
parente665fce31c29f502dc6a21559c4766ab627fb35a (diff)
downloadsamba-f334cd22101b7ce32b3382fc4d048eadd7385f2e.tar.gz
samba-f334cd22101b7ce32b3382fc4d048eadd7385f2e.tar.bz2
samba-f334cd22101b7ce32b3382fc4d048eadd7385f2e.zip
ldb: inherit parent flags on child requests in modules
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index 98d18ad104..0c2aa34289 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/lib/ldb/common/ldb.c
@@ -1086,6 +1086,7 @@ int ldb_build_search_req_ex(struct ldb_request **ret_req,
if (parent) {
req->handle->nesting++;
req->handle->parent = parent;
+ req->handle->flags = parent->handle->flags;
}
*ret_req = req;
@@ -1157,6 +1158,8 @@ int ldb_build_add_req(struct ldb_request **ret_req,
if (parent) {
req->handle->nesting++;
+ req->handle->parent = parent;
+ req->handle->flags = parent->handle->flags;
}
*ret_req = req;
@@ -1199,6 +1202,8 @@ int ldb_build_mod_req(struct ldb_request **ret_req,
if (parent) {
req->handle->nesting++;
+ req->handle->parent = parent;
+ req->handle->flags = parent->handle->flags;
}
*ret_req = req;
@@ -1241,6 +1246,8 @@ int ldb_build_del_req(struct ldb_request **ret_req,
if (parent) {
req->handle->nesting++;
+ req->handle->parent = parent;
+ req->handle->flags = parent->handle->flags;
}
*ret_req = req;
@@ -1285,6 +1292,8 @@ int ldb_build_rename_req(struct ldb_request **ret_req,
if (parent) {
req->handle->nesting++;
+ req->handle->parent = parent;
+ req->handle->flags = parent->handle->flags;
}
*ret_req = req;
@@ -1358,6 +1367,8 @@ int ldb_build_extended_req(struct ldb_request **ret_req,
if (parent) {
req->handle->nesting++;
+ req->handle->parent = parent;
+ req->handle->flags = parent->handle->flags;
}
*ret_req = req;