]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
fix spelling 405/head
authora1346054 <36859588+a1346054@users.noreply.github.com>
Mon, 13 Sep 2021 15:11:40 +0000 (15:11 +0000)
committera1346054 <36859588+a1346054@users.noreply.github.com>
Mon, 13 Sep 2021 15:11:40 +0000 (15:11 +0000)
lib/faillog.h
lib/subordinateio.c
libmisc/limits.c

index a0a95b34bddb37a54e36a69fdefcc4b42ea76ab7..aefe9f925fb00cfe0e786343f2a3a6235e35fb00 100644 (file)
@@ -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.
index ec34a6d3a887f0778886c0f39d2dcf192eba149c..107c5dc8d6f69685b334e37af87457761522cd09 100644 (file)
@@ -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;
index 98f5882a8da2bee2941f0d271040abd69eaa6f6e..17f9ecd71e30f08833fa7bd7dcf230be035834f2 100644 (file)
@@ -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
  *