From: Olly Betts Date: Tue, 27 Nov 2018 22:10:17 +0000 (+1300) Subject: Fix spelling mistakes X-Git-Url: http://git.samba.org/samba.git/?p=amitay%2Fsamba.git;a=commitdiff_plain;h=28aeb86a9fbc102007e3152bc6c574232204803a Fix spelling mistakes Signed-off-by: Olly Betts Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/ctdb/event/event_daemon.c b/ctdb/event/event_daemon.c index 3f9827c6a06..b6c01761e91 100644 --- a/ctdb/event/event_daemon.c +++ b/ctdb/event/event_daemon.c @@ -293,13 +293,13 @@ int main(int argc, const char **argv) ret = event_config_init(e_state, &e_state->config); if (ret != 0) { - D_ERR("Failed to initalize event config\n"); + D_ERR("Failed to initialize event config\n"); goto fail; } e_state->ev = tevent_context_init(e_state->mem_ctx); if (e_state->ev == NULL) { - D_ERR("Failed to initalize tevent\n"); + D_ERR("Failed to initialize tevent\n"); ret = 1; goto fail; } diff --git a/lib/addns/dnsmarshall.c b/lib/addns/dnsmarshall.c index 846fd5bf16a..3205786cbbb 100644 --- a/lib/addns/dnsmarshall.c +++ b/lib/addns/dnsmarshall.c @@ -35,7 +35,7 @@ struct dns_buffer *dns_create_buffer(TALLOC_CTX *mem_ctx) result->error = ERROR_DNS_SUCCESS; /* - * Small inital size to excercise the realloc code + * Small initial size to exercise the realloc code */ result->size = 2; diff --git a/lib/tdb/test/run-marklock-deadlock.c b/lib/tdb/test/run-marklock-deadlock.c index ff03a11d6fb..37e959f069a 100644 --- a/lib/tdb/test/run-marklock-deadlock.c +++ b/lib/tdb/test/run-marklock-deadlock.c @@ -171,7 +171,7 @@ static int do_tests(const char *name, int tdb_flags) * mutex patches, the freelist was already blocked here by the * allrecord child, which was waiting for the chainlock child to give * up its chainlock. Make sure that we don't run into this - * deadlock. To excercise the deadlock, just comment out the "ok" + * deadlock. To exercise the deadlock, just comment out the "ok" * line. * * The freelist lock/mutex is independent from the allrecord lock/mutex. diff --git a/lib/tevent/testsuite.c b/lib/tevent/testsuite.c index b0f58efd093..62a8da3c1a1 100644 --- a/lib/tevent/testsuite.c +++ b/lib/tevent/testsuite.c @@ -1719,7 +1719,7 @@ static bool test_multi_tevent_threaded_2(struct torture_context *test, /* * tevent_re_initialise used to have a bug where it did not * re-initialise the thread support after taking it - * down. Excercise that code path. + * down. Exercise that code path. */ ret = tevent_re_initialise(ev); torture_assert(test, ret == 0, "tevent_re_initialise failed"); diff --git a/libcli/util/tstream.h b/libcli/util/tstream.h index 36ae65d9e5b..3bf80f0e925 100644 --- a/libcli/util/tstream.h +++ b/libcli/util/tstream.h @@ -51,7 +51,7 @@ typedef NTSTATUS tstream_read_pdu_blob_full_fn_t(void *private_data, * * @param[in] stream The stream to read data from. * - * @param[in] inital_read_size The initial byte count that is needed to workout + * @param[in] initial_read_size The initial byte count that is needed to workout * the full pdu size. * * @param[in] full_fn The callback function that will report the size @@ -69,7 +69,7 @@ typedef NTSTATUS tstream_read_pdu_blob_full_fn_t(void *private_data, struct tevent_req *tstream_read_pdu_blob_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct tstream_context *stream, - size_t inital_read_size, + size_t initial_read_size, tstream_read_pdu_blob_full_fn_t *full_fn, void *full_private); /** diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index 030bea4b299..bf999ddaab9 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -2163,7 +2163,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base))) # (objectClass). if list_attid_from_md[0] != 0: error_count += 1 - self.report("ERROR: Not fixing incorrect inital attributeID in '%s' on '%s', it should be objectClass" % + self.report("ERROR: Not fixing incorrect initial attributeID in '%s' on '%s', it should be objectClass" % (attrname, str(dn))) got_repl_property_meta_data = True diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 0ddc01737bb..e5def9669f4 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -333,7 +333,7 @@ static ssize_t shadow_copy2_posix_gmt_string(struct vfs_handle_struct *handle, * snapshot at the given timestamp of the input path. * * In the case of a parallel snapdir (specified with an - * absolute path), this is the inital portion of the + * absolute path), this is the initial portion of the * local path of any snapshot file. The complete path is * obtained by appending the portion of the file's path * below the share root's mountpoint. diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index 74a71cbf04b..35181da3a4f 100644 --- a/source3/passdb/pdb_get_set.c +++ b/source3/passdb/pdb_get_set.c @@ -237,7 +237,7 @@ const struct dom_sid *pdb_get_group_sid(struct samu *sampass) } /** - * Get flags showing what is initalised in the struct samu + * Get flags showing what is initialised in the struct samu * @param sampass the struct samu in question * @return the flags indicating the members initialised in the struct. **/ @@ -419,7 +419,7 @@ bool pdb_set_logon_divs(struct samu *sampass, uint16_t hours, enum pdb_value_sta } /** - * Set flags showing what is initalised in the struct samu + * Set flags showing what is initialised in the struct samu * @param sampass the struct samu in question * @param flag The *new* flag to be set. Old flags preserved * this flag is only added. diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 3d8012f2c06..40e3a4e13aa 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -3542,7 +3542,7 @@ static PyObject *py_pdb_new(PyTypeObject *type, PyObject *args, PyObject *kwargs return NULL; } - /* Initalize list of methods */ + /* Initialize list of methods */ status = make_pdb_method_name(&methods, url); if (!NT_STATUS_IS_OK(status)) { PyErr_Format(py_pdb_error, "Cannot load backend methods for '%s' backend (%d,%s)", @@ -3727,7 +3727,7 @@ static PyMethodDef py_passdb_methods[] = { Return domain SID from secrets database." }, { "reload_static_pdb", py_reload_static_pdb, METH_NOARGS, "reload_static_pdb() -> None\n\n \ - Re-initalise the static pdb used internally. Needed if 'passdb backend' is changed." }, + Re-initialise the static pdb used internally. Needed if 'passdb backend' is changed." }, { NULL }, }; diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 40ba319bf3d..a3df8a1b736 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3756,7 +3756,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, return status; } } - /* Note that here we set the *inital* delete on close flag, + /* Note that here we set the *initial* delete on close flag, not the regular one. The magic gets handled in close. */ fsp->initial_delete_on_close = True; } @@ -4292,7 +4292,7 @@ static NTSTATUS open_directory(connection_struct *conn, } if (NT_STATUS_IS_OK(status)) { - /* Note that here we set the *inital* delete on close flag, + /* Note that here we set the *initial* delete on close flag, not the regular one. The magic gets handled in close. */ fsp->initial_delete_on_close = True; } diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 956b83ae08b..f2617fab3b3 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -6930,7 +6930,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, status = can_set_delete_on_close(fsp, 0); if (NT_STATUS_IS_OK(status)) { - /* Note that here we set the *inital* delete on close flag, + /* Note that here we set the *initial* delete on close flag, * not the regular one. The magic gets handled in close. */ fsp->initial_delete_on_close = True; } diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index b99a036fca1..b2add781a2f 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -58,8 +58,8 @@ static NTSTATUS sync_files(struct copy_clistate *cp_clistate, const char *mask); * @brief RPC based subcommands for the 'net' utility. * * This file should contain much of the functionality that used to - * be found in rpcclient, execpt that the commands should change - * less often, and the fucntionality should be sane (the user is not + * be found in rpcclient, except that the commands should change + * less often, and the functionality should be sane (the user is not * expected to know a rid/sid before they conduct an operation etc.) * * @todo Perhaps eventually these should be split out into a number @@ -256,7 +256,7 @@ fail: } /** - * Force a change of the trust acccount password. + * Force a change of the trust account password. * * All parameters are provided by the run_rpc_command function, except for * argc, argv which are passed through. @@ -305,7 +305,7 @@ static NTSTATUS rpc_changetrustpw_internals(struct net_context *c, } /** - * Force a change of the trust acccount password. + * Force a change of the trust account password. * * @param argc Standard main() style argc. * @param argv Standard main() style argv. Initial components are already @@ -336,7 +336,7 @@ int net_rpc_changetrustpw(struct net_context *c, int argc, const char **argv) * the message to be displayed when oldjoin was explicitly * requested, but not when it was implied by "net rpc join". * - * This uses 'machinename' as the inital password, and changes it. + * This uses 'machinename' as the initial password, and changes it. * * The password should be created with 'server manager' or equiv first. * @@ -375,7 +375,7 @@ static int net_rpc_oldjoin(struct net_context *c, int argc, const char **argv) } /* - check what type of join - if the user want's to join as + check what type of join - if the user wants to join as a BDC, the server must agree that we are a BDC. */ if (argc >= 0) { @@ -568,7 +568,7 @@ static int net_rpc_join_newstyle(struct net_context *c, int argc, const char **a } /* - check what type of join - if the user want's to join as + check what type of join - if the user wants to join as a BDC, the server must agree that we are a BDC. */ if (argc >= 0) { diff --git a/source3/winbindd/winbindd_ccache_access.c b/source3/winbindd/winbindd_ccache_access.c index b3a8c89d7be..a73f9362245 100644 --- a/source3/winbindd/winbindd_ccache_access.c +++ b/source3/winbindd/winbindd_ccache_access.c @@ -104,8 +104,8 @@ static NTSTATUS do_ntlm_auth_with_stored_pw(const char *namespace, } /* - * We inject the inital NEGOTIATE message our caller used - * in order to get the state machine into the correct possition. + * We inject the initial NEGOTIATE message our caller used + * in order to get the state machine into the correct position. */ reply = data_blob_null; status = gensec_update(auth_generic_state->gensec_security, diff --git a/source3/wscript b/source3/wscript index cf7beb7dc46..458e46bce3f 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1437,7 +1437,7 @@ main() { headers='rpcsvc/rquota.h', lib='tirpc') - # Required fucntion for NFS quote support + # Required function for NFS quote support conf.CHECK_CODE(''' clnt_create("", RQUOTAPROG, RQUOTAVERS, "udp"); ''', diff --git a/source4/dsdb/samdb/ldb_modules/acl.c b/source4/dsdb/samdb/ldb_modules/acl.c index cd7144a138c..5d36f85b173 100644 --- a/source4/dsdb/samdb/ldb_modules/acl.c +++ b/source4/dsdb/samdb/ldb_modules/acl.c @@ -185,7 +185,7 @@ done: } /* - * Check this after the modules have be initalised so we + * Check this after the modules have be initialised so we * can actually read the backend DB. */ data->userPassword_support diff --git a/source4/libnet/libnet_domain.c b/source4/libnet/libnet_domain.c index 27a3e5521d0..a7499b84b35 100644 --- a/source4/libnet/libnet_domain.c +++ b/source4/libnet/libnet_domain.c @@ -602,7 +602,7 @@ NTSTATUS libnet_DomainOpenLsa_recv(struct composite_context *c, struct libnet_co /** * Sends a request to open a domain in desired service * - * @param ctx initalised libnet context + * @param ctx initialised libnet context * @param io arguments and results of the call * @param monitor pointer to monitor function that is passed monitor message */ @@ -1188,7 +1188,7 @@ static struct domainlist* get_domain_list(TALLOC_CTX *mem_ctx, struct domain_lis /** * Sends a request to list domains on given host * - * @param ctx initalised libnet context + * @param ctx initialised libnet context * @param mem_ctx memory context * @param io arguments and results of the call * @param monitor pointer to monitor function that is passed monitor messages diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 314e8f2d131..a4a328e5cf4 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -1523,7 +1523,7 @@ static bool torture_chkpath_test(struct torture_context *tctx, } /* - * This is a test to excercise some weird Samba3 error paths. + * This is a test to exercise some weird Samba3 error paths. */ static bool torture_samba3_errorpaths(struct torture_context *tctx) diff --git a/source4/torture/drs/python/getncchanges.py b/source4/torture/drs/python/getncchanges.py index 23925cf14bc..ff737a500b8 100644 --- a/source4/torture/drs/python/getncchanges.py +++ b/source4/torture/drs/python/getncchanges.py @@ -940,7 +940,7 @@ class DrsReplicaSyncIntegrityTestCase(drs_base.DrsBaseTestCase): # This test is a little different in that we're particularly interested # in exercising the replmd client code on the second DC. # First, make sure the peer DC has the base OU, then connect to it (so - # we store its inital HWM) + # we store its initial HWM) self.sync_DCs() peer_conn = DcConnection(self, self.ldb_dc1, self.dnsname_dc1)