From f334cd22101b7ce32b3382fc4d048eadd7385f2e Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 17 Jan 2011 11:42:35 +1100 Subject: ldb: inherit parent flags on child requests in modules --- source4/lib/ldb/common/ldb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source4/lib/ldb') 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; -- cgit