From: Joseph Sutton Date: Mon, 16 Oct 2023 03:08:04 +0000 (+1300) Subject: ldb: Fix code spelling X-Git-Tag: talloc-2.4.2~1079 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee8820b6dc604368f95d647cace0647da9ee7e35;p=thirdparty%2Fsamba.git ldb: Fix code spelling Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/common/ldb_modules.c b/lib/ldb/common/ldb_modules.c index 53875ee216a..b5627b0d04f 100644 --- a/lib/ldb/common/ldb_modules.c +++ b/lib/ldb/common/ldb_modules.c @@ -799,7 +799,7 @@ int ldb_module_send_entry(struct ldb_request *req, return req->callback(req, ares); } -/* calls the request callback to send an referrals +/* calls the request callback to send a referral * * params: * req: the original request passed to your module @@ -923,7 +923,7 @@ static int ldb_modules_load_dir(const char *modules_dir, const char *version); ldb_register_module() and ldb_register_backend() to register a module or backend, but it may also be used to register command line handling functions, ldif handlers or any other local - modififications. + modifications. The ldb_init_module() function does not get a ldb_context passed in, as modules will be used for multiple ldb context handles. The call diff --git a/lib/ldb/ldb_key_value/ldb_kv.c b/lib/ldb/ldb_key_value/ldb_kv.c index 347b4fbfd8a..ef69e5e5b03 100644 --- a/lib/ldb/ldb_key_value/ldb_kv.c +++ b/lib/ldb/ldb_key_value/ldb_kv.c @@ -1582,7 +1582,7 @@ static int ldb_kv_start_trans(struct ldb_module *module) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); @@ -1625,7 +1625,7 @@ static int ldb_kv_prepare_commit(struct ldb_module *module) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); diff --git a/lib/ldb/ldb_key_value/ldb_kv_index.c b/lib/ldb/ldb_key_value/ldb_kv_index.c index f76087de6af..3f1a847f2b6 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_index.c +++ b/lib/ldb/ldb_key_value/ldb_kv_index.c @@ -1089,7 +1089,7 @@ static struct ldb_dn *ldb_kv_index_key(struct ldb_context *ldb, /* * We do not base 64 encode a DN in a key, it has already been - * casefold and lineraized, that is good enough. That already + * casefolded and linearized, that is good enough. That already * avoids embedded NUL etc. */ if (ldb_kv->cache->GUID_index_attribute != NULL) { diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c index 77cd5e9726b..242fdef7619 100644 --- a/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/lib/ldb/ldb_tdb/ldb_tdb.c @@ -69,7 +69,7 @@ static int ltdb_lock_read(struct ldb_module *module) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); @@ -109,7 +109,7 @@ static int ltdb_unlock_read(struct ldb_module *module) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); @@ -175,7 +175,7 @@ static int ltdb_transaction_start(struct ldb_kv_private *ldb_kv) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); @@ -192,7 +192,7 @@ static int ltdb_transaction_cancel(struct ldb_kv_private *ldb_kv) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); @@ -209,7 +209,7 @@ static int ltdb_transaction_prepare_commit(struct ldb_kv_private *ldb_kv) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); @@ -226,7 +226,7 @@ static int ltdb_transaction_commit(struct ldb_kv_private *ldb_kv) if (ldb_kv->pid != pid) { ldb_asprintf_errstring(ldb_module_get_ctx(ldb_kv->module), __location__ - ": Reusing ldb opend by pid %d in " + ": Reusing ldb opened by pid %d in " "process %d\n", ldb_kv->pid, pid); diff --git a/lib/ldb/tests/ldb_mod_op_test.c b/lib/ldb/tests/ldb_mod_op_test.c index 6b49be55d61..f620fc1357b 100644 --- a/lib/ldb/tests/ldb_mod_op_test.c +++ b/lib/ldb/tests/ldb_mod_op_test.c @@ -3280,7 +3280,7 @@ static void test_read_only(void **state) /* * Open the database in read only and read write mode, - * ensure it's opend in read only mode first + * ensure it's opened in read only mode first */ ro_ldb = ldb_init(test_ctx, test_ctx->ev); ret = ldb_connect(ro_ldb, test_ctx->dbpath, LDB_FLG_RDONLY, NULL);