Fix spelling mistakes
authorOlly Betts <olly@survex.com>
Tue, 27 Nov 2018 22:10:17 +0000 (11:10 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 30 Nov 2018 02:35:13 +0000 (03:35 +0100)
Signed-off-by: Olly Betts <olly@survex.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
18 files changed:
ctdb/event/event_daemon.c
lib/addns/dnsmarshall.c
lib/tdb/test/run-marklock-deadlock.c
lib/tevent/testsuite.c
libcli/util/tstream.h
python/samba/dbchecker.py
source3/modules/vfs_shadow_copy2.c
source3/passdb/pdb_get_set.c
source3/passdb/py_passdb.c
source3/smbd/open.c
source3/smbd/reply.c
source3/utils/net_rpc.c
source3/winbindd/winbindd_ccache_access.c
source3/wscript
source4/dsdb/samdb/ldb_modules/acl.c
source4/libnet/libnet_domain.c
source4/torture/basic/base.c
source4/torture/drs/python/getncchanges.py

index 3f9827c6a069a0af99b590514a1d637118f28f2d..b6c01761e91b40338568571184a899d970019849 100644 (file)
@@ -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;
        }
index 846fd5bf16ae38f53a407bfd7e01b0625f79cbf6..3205786cbbb0f49d167c64b8f40e6816d5be65d0 100644 (file)
@@ -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;
 
index ff03a11d6fb60f63797ed5334b83d363b796e41d..37e959f069aa9c0c74fff4b9abf8f02837062a51 100644 (file)
@@ -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.
index b0f58efd0938bb33512860db0efa224887bf2111..62a8da3c1a16c18280298ed58a45b43e462dc321 100644 (file)
@@ -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");
index 36ae65d9e5bd39ee7720cf035fe1271412247154..3bf80f0e9256bf1435ebfd0cefbd06cee109e9f4 100644 (file)
@@ -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);
 /**
index 030bea4b299dbe12e27b2a74a658f77ee4894d1e..bf999ddaab9daf21f3f94591199e5ef0997d2c98 100644 (file)
@@ -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
index 0ddc01737bb33b8beabfb5a0ead9a61995c01f0e..e5def9669f48593200d845ceb7d384b47530d50b 100644 (file)
@@ -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.
index 74a71cbf04b3f5e9da72c016fce59cf6303f5198..35181da3a4f342b96d9a51585108bd99eef5d2d5 100644 (file)
@@ -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.  
index 3d8012f2c062bb58845aa12456c3bb5e1b637a6c..40e3a4e13aa74a853333e65bbc7449796522e3c0 100644 (file)
@@ -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 },
 };
 
index 40ba319bf3d995115c3ebf06be5b7b5db6b17b3a..a3df8a1b7363bb2dfdbf1013fdd1e2c1dea1f263 100644 (file)
@@ -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;
                }
index 956b83ae08b0567fd89b1141f6f4e573f4a51eaf..f2617fab3b3719ceb748d1d870e329a09cdd149d 100644 (file)
@@ -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;
                        }
index b99a036fca1247eb404b981a7774acdd2aedab72..b2add781a2f0f1ebebddcc72228489d41a1895db 100644 (file)
@@ -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) {
index b3a8c89d7be4010c398ca97fe0e9fa0c91ae1fd7..a73f9362245f36e49ebea8baee68f1624008ddd4 100644 (file)
@@ -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,
index cf7beb7dc4662e55249d24809b7ee84136fa6473..458e46bce3f9bce2b7604525a82f3dfe369d966c 100644 (file)
@@ -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");
                             ''',
index cd7144a138ce1add9474607204ccd3ceb45a3afe..5d36f85b173cbc0e96cc9433408f02ffbbbbde1b 100644 (file)
@@ -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
index 27a3e5521d0eacea493a4d2496af3525045825d4..a7499b84b35bb6a8b2c6e5d1ddb9b24d86939936 100644 (file)
@@ -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
index 314e8f2d131f30ffca87d91ed340bbf0ebcef57e..a4a328e5cf446bdc4c46c11921e9c15ebda9512f 100644 (file)
@@ -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)
index 23925cf14bc50c9ad478c99a2ddadf4a1e6cf0ac..ff737a500b8e274c8d45b9474334ec46195844c8 100644 (file)
@@ -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)