]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Wed, 5 Jul 2023 09:26:30 +0000 (11:26 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 13 Jul 2023 06:34:01 +0000 (06:34 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jul 13 06:34:01 UTC 2023 on atb-devel-224

13 files changed:
source3/libsmb/cli_smb2_fnum.c
source3/libsmb/clidfs.c
source3/libsmb/clifile.c
source3/libsmb/clilist.c
source3/libsmb/dsgetdcname.c
source3/libsmb/libsmb_server.c
source3/libsmb/libsmb_setget.c
source3/libsmb/libsmb_thread_impl.c
source3/libsmb/namecache.c
source3/libsmb/namequery.c
source3/libsmb/nmblib.c
source3/libsmb/passchange.c
source3/libsmb/trusts_util.c

index 3e4ff82b77614b50e4aeb6c7074d25814063994d..ad73e4a10413f7688b81197a47a1c5a7d4a629f1 100644 (file)
@@ -1563,7 +1563,7 @@ static void cli_smb2_list_closed(struct tevent_req *subreq)
  * QUERY_DIRECTORY has returned with another buffer. This way we
  * guarantee that no asynchronous request is open after this call
  * returns an entry, so that other synchronous requests can be issued
- * on the same connection while the directoy listing proceeds.
+ * on the same connection while the directory listing proceeds.
  */
 NTSTATUS cli_smb2_list_recv(
        struct tevent_req *req,
@@ -3330,8 +3330,8 @@ static struct tevent_req *cli_smb2_rename_fnum_send(
         * for a SMB2_FILE_RENAME_INFORMATION buffer of
         * 24 bytes. It returns NT_STATUS_INFO_LENGTH_MISMATCH
         * if the length is less. This isn't an alignment
-        * issue as Windows client happily 2-byte align
-        * for larget target name sizes. Also the Windows 10
+        * issue as Windows client accepts happily 2-byte align
+        * for larger target name sizes. Also the Windows 10
         * SMB1 server doesn't have this restriction.
         *
         * BUG: https://bugzilla.samba.org/show_bug.cgi?id=14403
index d111fce033a91e78cf7418fcd675e5beb114d9fa..4321c2164733819eb08642de160cfd674ee1f7fe 100644 (file)
@@ -1023,7 +1023,7 @@ NTSTATUS cli_resolve_path(TALLOC_CTX *ctx,
        }
 
        /*
-        * Bug#10123 - DFS referal entries can be provided in a random order,
+        * Bug#10123 - DFS referral entries can be provided in a random order,
         * so check the connection cache for each item to avoid unnecessary
         * reconnections.
         */
index 6acca11211e226cb7a7401ba9828e5746a454c47..bfc7e0e36999e2fda30da553d4fd7dfb781a7985 100644 (file)
@@ -3449,7 +3449,7 @@ NTSTATUS cli_open(struct cli_state *cli, const char *fname, int flags,
                                pfnum,
                                &cr);
 
-       /* Try and cope will all varients of "we don't do this call"
+       /* Try and cope will all variants of "we don't do this call"
           and fall back to openX. */
 
        if (NT_STATUS_EQUAL(status,NT_STATUS_NOT_IMPLEMENTED) ||
@@ -5228,7 +5228,7 @@ NTSTATUS cli_disk_size(struct cli_state *cli, const char *path, uint64_t *bsize,
                        &sectors_per_block,
                        &bytes_per_sector);
 
-        /* Try and cope will all varients of "we don't do this call"
+        /* Try and cope will all variants of "we don't do this call"
            and fall back to cli_dskattr. */
 
        if (NT_STATUS_EQUAL(status,NT_STATUS_NOT_IMPLEMENTED) ||
index 58a8fe1a0c6af8f53a50a29943d9292480e8a321..46d6d95b9819c28b6f157863e7f92b3c3a0ed5f3 100644 (file)
@@ -881,7 +881,7 @@ static void cli_list_trans_done(struct tevent_req *subreq)
        SIVAL(param, 6, resume_key); /* ff_resume_key */
        /*
         * NB. *DON'T* use continue here. If you do it seems that W2K
-        * and bretheren can miss filenames. Use last filename
+        * and brethren can miss filenames. Use last filename
         * continue instead. JRA
         */
        SSVAL(param, 10, (FLAG_TRANS2_FIND_REQUIRE_RESUME
index e0462d5fb24ced02020b6970dc6c8c499c3135bf..280ccd585b0d9f28e13a2f74632af692629f42ae 100644 (file)
@@ -402,7 +402,7 @@ static bool check_allowed_required_flags(uint32_t flags,
        uint32_t offered_type = flags & (DS_IS_FLAT_NAME|DS_IS_DNS_NAME);
        uint32_t query_type = flags & (DS_BACKGROUND_ONLY|DS_FORCE_REDISCOVERY);
 
-       /* FIXME: check for DSGETDC_VALID_FLAGS and check for excluse bits
+       /* FIXME: check for DSGETDC_VALID_FLAGS and check for exclusive bits
         * (DS_PDC_REQUIRED, DS_KDC_REQUIRED, DS_GC_SERVER_REQUIRED) */
 
        debug_dsdcinfo_flags(10, flags);
index 175e0b2462b7384bebfbad53a34116532cc64f72..1e8e5aec25329e467909efb3624fcfbbafd61a2b 100644 (file)
@@ -38,7 +38,7 @@
  * Check a server for being alive and well.
  * returns 0 if the server is in shape. Returns 1 on error
  *
- * Also useable outside libsmbclient to enable external cache
+ * Also usable outside libsmbclient to enable external cache
  * to do some checks too.
  */
 int
@@ -100,7 +100,7 @@ SMBC_check_server(SMBCCTX * context,
  * Remove a server from the cached server list it's unused.
  * On success, 0 is returned. 1 is returned if the server could not be removed.
  *
- * Also useable outside libsmbclient
+ * Also usable outside libsmbclient
  */
 int
 SMBC_remove_unused_server(SMBCCTX * context,
index d071efa11910c4797e70c51fb8d59b8641c8b0ff..9a8ef97f9feb55c7395fef8463c62344e7a24afd 100644 (file)
@@ -189,7 +189,7 @@ smbc_setOptionDebugToStderr(SMBCCTX *c, smbc_bool b)
                /*
                 * We do not have a unique per-thread debug state? For
                 * now, we'll just leave it up to the user. If any one
-                * context spefies debug to stderr then all will be (and
+                * context specifies debug to stderr then all will be (and
                 * will stay that way, as it is unsafe to flip back if
                 * stdout is in use for other things)
                 */
index c0ed636211ef02a41ea685801cdb9a2d19d7fc8d..dce611073ea03f37c12c975894290dd607762448 100644 (file)
@@ -46,7 +46,7 @@
  *
  * @param lock_mutex
  *   Lock a mutex. This function should expect three parameters: plock,
- *   lock_type, and location. The mutex aassociated with identifier plock
+ *   lock_type, and location. The mutex associated with identifier plock
  *   should be locked if lock_type is 1, and unlocked if lock_type is 2. The
  *   location parameter can be used for debugging, as it contains the
  *   compiler-provided __location__ of the call.
index d172f59f8487b90220415dbf07df5da4b2ff3fde..eb59b9eb2e2fbcecb814c2c029488fc0b757e4c0 100644 (file)
@@ -29,7 +29,7 @@
 #define IPSTR_LIST_CHAR        ','
 
 /**
- * Allocate and initialise an ipstr list using samba_sockaddr ip adresses
+ * Allocate and initialise an ipstr list using samba_sockaddr ip addresses
  * passed as arguments.
  *
  * @param ctx TALLOC_CTX to use
@@ -329,7 +329,7 @@ bool namecache_fetch(TALLOC_CTX *ctx,
        DBG_INFO("name %s#%02X found.\n", name, name_type);
 
        /*
-        * Split up the stored value into the list of IP adresses
+        * Split up the stored value into the list of IP addresses
         */
        *num_names = ipstr_list_parse(ctx, value, sa_list);
 
index 047fff22ad94bb57a0d223a730b40f18b02a952a..4733aaed693a7cff458590d7924ec6f55a07eafd 100644 (file)
@@ -3438,7 +3438,7 @@ static NTSTATUS get_dc_list(TALLOC_CTX *ctx,
 }
 
 /*********************************************************************
- Small wrapper function to get the DC list and sort it if neccessary.
+ Small wrapper function to get the DC list and sort it if necessary.
  Returns a samba_sockaddr array.
 *********************************************************************/
 
index 607470f7e4eef6ad88cb312debe831ec9c07ec29..c90e92ebb697bfdfcce82ddfc5d163749808f017 100644 (file)
@@ -300,7 +300,7 @@ void put_name(char *dest, const char *name, int pad, unsigned int name_type)
 
  Compressed names are really weird. The "compression" doubles the
  size. The idea is that it also means that compressed names conform
- to the doman name system. See RFC1002.
+ to the domain name system. See RFC1002.
 
  If buf == NULL this is a length calculation.
 ******************************************************************/
index dff5ad1602f88df6a71db83e5b981c9b8c3f34be..716bfa39a3b8b31d1c101cdfdd5a0ba8217195f0 100644 (file)
@@ -160,7 +160,7 @@ NTSTATUS remote_password_change(const char *remote_machine,
                /*
                 * If the user password must be changed the ntlmssp bind will
                 * fail the same way as the session setup above did. The
-                * difference ist that with a pipe bind we don't get a good
+                * difference is that with a pipe bind we don't get a good
                 * error message, the result will be that the rpc call below
                 * will just fail. So we do it anonymously, there's no other
                 * way.
index c86bceac7d6bf3d2c96969611cb94416ba7147c8..c40eb7918025b503a9fd98224b4a7c5cd82d004a 100644 (file)
@@ -34,7 +34,7 @@
 
 /*********************************************************
  Change the domain password on the PDC.
- Do most of the legwork ourselfs.  Caller must have
+ Do most of the legwork ourselves.  Caller must have
  already setup the connection to the NETLOGON pipe
 **********************************************************/