From: Andreas Schneider Date: Thu, 13 Jul 2023 07:20:05 +0000 (+0200) Subject: s3:passdb: Fix code spelling X-Git-Tag: ldb-2.8.0~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d41702abe099cd2450713e324859a82272cb013b;p=thirdparty%2Fsamba.git s3:passdb: Fix code spelling Signed-off-by: Andreas Schneider Reviewed-by: Joseph Sutton --- diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c index 494059b2849..a80b1633892 100644 --- a/source3/passdb/machine_account_secrets.c +++ b/source3/passdb/machine_account_secrets.c @@ -1804,7 +1804,7 @@ static NTSTATUS secrets_check_password_change(const struct secrets_domain_info1 } /* - * Here we check that the given strucure still contains the + * Here we check that the given structure still contains the * same secrets_domain_info1_change as currently stored. * * There's always a gap between secrets_prepare_password_change() diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 8b66a992269..4bc48f63ee8 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -1049,7 +1049,7 @@ static bool init_samu_from_buffer_v0(struct samu *sampass, uint8_t *buf, uint32_ &lm_pw_len, &lm_pw_ptr, /* B */ &nt_pw_len, &nt_pw_ptr, /* B */ &acct_ctrl, /* w */ - &remove_me, /* remove on the next TDB_FORMAT upgarde */ /* d */ + &remove_me, /* remove on the next TDB_FORMAT upgrade */ /* d */ &logon_divs, /* w */ &hours_len, /* d */ &hourslen, &hours, /* B */ @@ -2102,7 +2102,7 @@ static uint32_t init_buffer_from_samu_v4(uint8_t **buf, struct samu *sampass, bo } /********************************************************************** - Intialize a struct samu struct from a BYTE buffer of size len + Initialize a struct samu struct from a BYTE buffer of size len *********************************************************************/ bool init_samu_from_buffer(struct samu *sampass, uint32_t level, @@ -2125,7 +2125,7 @@ bool init_samu_from_buffer(struct samu *sampass, uint32_t level, } /********************************************************************** - Intialize a BYTE buffer from a struct samu struct + Initialize a BYTE buffer from a struct samu struct *********************************************************************/ uint32_t init_buffer_from_samu (uint8_t **buf, struct samu *sampass, bool size_only) @@ -2408,7 +2408,7 @@ static bool get_trust_pw_clear2(const char *domain, * request to trusted domains are performed through our dc.) * * So we simply use our own domain name to retrieve the - * machine account passowrd and ignore the request domain here. + * machine account password and ignore the request domain here. */ pwd = secrets_fetch_machine_password(lp_workgroup(), &last_set_time, channel); diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index d598fe51e1f..6789cc0824e 100644 --- a/source3/passdb/pdb_get_set.c +++ b/source3/passdb/pdb_get_set.c @@ -32,7 +32,7 @@ /** * @todo Redefine this to NULL, but this changes the API because - * much of samba assumes that the pdb_get...() funtions + * much of samba assumes that the pdb_get...() functions * return strings. (ie not null-pointers). * See also pdb_fill_default_sam(). */ diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index 118a5d76926..14d7c2aec5f 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -253,7 +253,7 @@ struct pdb_domain_info *pdb_get_domain_info(TALLOC_CTX *mem_ctx) * * @param[in] sampass The sam user to check. * - * @return True if the function was successfull, false on an error. + * @return True if the function was successful, false on an error. */ static bool pdb_try_account_unlock(struct samu *sampass) { diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 46ba5e9a773..83c61e206b5 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -177,7 +177,7 @@ static NTSTATUS ldapsam_get_seq_num(struct pdb_methods *my_methods, time_t *seq_ const char *p; const char **attrs; - /* Unfortunatly there is no proper way to detect syncrepl-support in + /* Unfortunately there is no proper way to detect syncrepl-support in * smbldap_connect_system(). The syncrepl OIDs are submitted for publication * but do not show up in the root-DSE yet. Neither we can query the * subschema-context for the syncProviderSubentry or syncConsumerSubentry @@ -1684,7 +1684,7 @@ static NTSTATUS ldapsam_getsampwsid(struct pdb_methods *my_methods, struct samu } /******************************************************************** - Do the actual modification - also change a plaintext passord if + Do the actual modification - also change a plaintext password if it it set. **********************************************************************/ diff --git a/source3/passdb/pdb_ldap.h b/source3/passdb/pdb_ldap.h index d83c2afbbba..755574a35d0 100644 --- a/source3/passdb/pdb_ldap.h +++ b/source3/passdb/pdb_ldap.h @@ -31,7 +31,7 @@ struct ldapsam_privates { struct smbldap_state *smbldap_state; - /* Former statics */ + /* Former statistics */ LDAPMessage *result; LDAPMessage *entry; int index; diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index 515e5f9f84d..36e016f02c4 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -167,7 +167,7 @@ static bool pw_file_unlock(int fd, int *plock_depth) } /************************************************************** - Intialize a smb_passwd struct + Initialize a smb_passwd struct *************************************************************/ static void pdb_init_smb(struct smb_passwd *user) @@ -283,7 +283,7 @@ Error was %s\n", pfile, strerror(errno) )); * by doing a stat on the filename and an fstat on the fd. If the * two inodes differ then someone did a rename between the open and * the lock. Back off and try the open again. Only do this 5 times to - * prevent infinate loops. JRA. + * prevent infinite loops. JRA. */ if (sys_stat(pfile, &sbuf1, false) != 0) { @@ -1203,7 +1203,7 @@ static bool build_smb_pass (struct smb_passwd *smb_pw, const struct samu *sampas if (!IS_SAM_DEFAULT(sampass, PDB_USERSID)) { rid = pdb_get_user_rid(sampass); - /* If the user specified a RID, make sure its able to be both stored and retreived */ + /* If the user specified a RID, make sure its able to be both stored and retrieved */ if (rid == DOMAIN_RID_GUEST) { struct passwd *passwd = Get_Pwnam_alloc(NULL, lp_guest_account()); if (!passwd) { diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 161030fed8b..ab632dc596f 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -1306,7 +1306,7 @@ static bool tdbsam_is_responsible_for_builtin(struct pdb_methods *m) } /********************************************************************* - Initialize the tdb sam backend. Setup the dispath table of methods, + Initialize the tdb sam backend. Setup the dispatch table of methods, open the tdb, etc... *********************************************************************/ diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 2d5b2ab5705..7982654b6bc 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -3698,7 +3698,7 @@ static PyMethodDef py_pdb_methods[] = { Get account policy information as a dictionary." }, { "set_account_policy", py_pdb_set_account_policy, METH_VARARGS, "get_account_policy(Mapping) -> None\n\n \ - Set account policy settings from a dicionary." }, + Set account policy settings from a dictionary." }, /* get_seq_num */ { "search_users", py_pdb_search_users, METH_VARARGS, "search_users(acct_flags) -> List\n\n \