From: Andreas Schneider Date: Wed, 5 Jul 2023 09:26:30 +0000 (+0200) Subject: s3:libsmb: Fix code spelling X-Git-Tag: talloc-2.4.1~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a5cccce24e5fe06b1fdedb3c59efb5b67750b09;p=thirdparty%2Fsamba.git s3:libsmb: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Martin Schwenke Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Jul 13 06:34:01 UTC 2023 on atb-devel-224 --- diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index 3e4ff82b776..ad73e4a1041 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -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 diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index d111fce033a..4321c216473 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -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. */ diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 6acca11211e..bfc7e0e3699 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -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, §ors_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) || diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 58a8fe1a0c6..46d6d95b981 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -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 diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index e0462d5fb24..280ccd585b0 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -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); diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index 175e0b2462b..1e8e5aec253 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -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, diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c index d071efa1191..9a8ef97f9fe 100644 --- a/source3/libsmb/libsmb_setget.c +++ b/source3/libsmb/libsmb_setget.c @@ -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) */ diff --git a/source3/libsmb/libsmb_thread_impl.c b/source3/libsmb/libsmb_thread_impl.c index c0ed636211e..dce611073ea 100644 --- a/source3/libsmb/libsmb_thread_impl.c +++ b/source3/libsmb/libsmb_thread_impl.c @@ -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. diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index d172f59f848..eb59b9eb2e2 100644 --- a/source3/libsmb/namecache.c +++ b/source3/libsmb/namecache.c @@ -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); diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 047fff22ad9..4733aaed693 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -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. *********************************************************************/ diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index 607470f7e4e..c90e92ebb69 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/libsmb/nmblib.c @@ -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. ******************************************************************/ diff --git a/source3/libsmb/passchange.c b/source3/libsmb/passchange.c index dff5ad1602f..716bfa39a3b 100644 --- a/source3/libsmb/passchange.c +++ b/source3/libsmb/passchange.c @@ -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. diff --git a/source3/libsmb/trusts_util.c b/source3/libsmb/trusts_util.c index c86bceac7d6..c40eb791802 100644 --- a/source3/libsmb/trusts_util.c +++ b/source3/libsmb/trusts_util.c @@ -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 **********************************************************/