From d7c9550b7f8ef67ba07ee65d2085aa99c6113184 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Mon, 13 Sep 2021 15:11:40 +0000 Subject: [PATCH] fix spelling --- lib/faillog.h | 4 ++-- lib/subordinateio.c | 4 ++-- libmisc/limits.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/faillog.h b/lib/faillog.h index a0a95b34..aefe9f92 100644 --- a/lib/faillog.h +++ b/lib/faillog.h @@ -45,8 +45,8 @@ struct faillog { short fail_cnt; /* failures since last success */ short fail_max; /* failures before turning account off */ - char fail_line[12]; /* last failure occured here */ - time_t fail_time; /* last failure occured then */ + char fail_line[12]; /* last failure occurred here */ + time_t fail_time; /* last failure occurred then */ /* * If nonzero, the account will be re-enabled if there are no * failures for fail_locktime seconds since last failure. diff --git a/lib/subordinateio.c b/lib/subordinateio.c index ec34a6d3..107c5dc8 100644 --- a/lib/subordinateio.c +++ b/lib/subordinateio.c @@ -224,7 +224,7 @@ static const struct subordinate_range *find_range(struct commonio_db *db, /* Get UID of the username we are looking for */ pwd = getpwnam(owner); if (NULL == pwd) { - /* Username not defined in /etc/passwd, or error occured during lookup */ + /* Username not defined in /etc/passwd, or error occurred during lookup */ return NULL; } owner_uid = pwd->pw_uid; @@ -847,7 +847,7 @@ static int append_uids(uid_t **uids, const char *owner, int n) } else { struct passwd *pwd = getpwnam(owner); if (NULL == pwd) { - /* Username not defined in /etc/passwd, or error occured during lookup */ + /* Username not defined in /etc/passwd, or error occurred during lookup */ free(*uids); *uids = NULL; return -1; diff --git a/libmisc/limits.c b/libmisc/limits.c index 98f5882a..17f9ecd7 100644 --- a/libmisc/limits.c +++ b/libmisc/limits.c @@ -202,7 +202,7 @@ static int check_logins (const char *name, const char *maxlogins) return 0; } -/* Function setup_user_limits - checks/set limits for the curent login +/* Function setup_user_limits - checks/set limits for the current login * Original idea from Joel Katz's lshell. Ported to shadow-login * by Cristian Gafton - gafton@sorosis.ro *