]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix typos
authorSamanta Navarro <ferivoz@riseup.net>
Fri, 30 Dec 2022 11:51:29 +0000 (11:51 +0000)
committerSerge Hallyn <serge@hallyn.com>
Fri, 27 Jan 2023 04:44:39 +0000 (22:44 -0600)
Typos found with codespell.

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
contrib/adduser.c
lib/shadowlog_internal.h
lib/subordinateio.c
man/usermod.8.xml
src/newgrp.c
src/useradd.c

index deebd4c614423b69aa03c66b1f3bba5d0d045c43..c93444bab7cfaff77c704d504845d215bd9c0837 100644 (file)
@@ -60,7 +60,7 @@
 ** Added in the password date field, which should always reflect the last
 **     date the password was changed, for expiry purposes.  "passwd" always
 **     updates this field, so the adduser program should set it up right
-**     initially (or a user could keep thier initial password forever ;)
+**     initially (or a user could keep their initial password forever ;)
 **     The number is in days since Jan 1st, 1970.
 **
 **                       Have fun with it, and someone please make
index 72a0e0c3806c89e29a65cf4f2c2f6ab1e65361aa..f972a3c400efa2a95e8a8d4993d49f7533089e01 100644 (file)
@@ -2,6 +2,6 @@
 #define _SHADOWLOG_INTERNAL_H
 
 extern const char *shadow_progname; /* Program name showed in error messages */
-extern FILE *shadow_logfd;  /* file descripter to which error messages are printed */
+extern FILE *shadow_logfd;  /* file descriptor to which error messages are printed */
 
 #endif /* _SHADOWLOG_INTERNAL_H */
index 980cd2456cfbe4339c216ae92352927cfa341391..c90f2b1048caea2234ed5748aa993f46ff5a65bd 100644 (file)
@@ -985,7 +985,7 @@ bool new_subid_range(struct subordinate_range *range, enum subid_type id_type, b
        switch (id_type) {
        case ID_TYPE_UID:
                if (!sub_uid_lock()) {
-                       printf("Failed loging subuids (errno %d)\n", errno);
+                       printf("Failed locking subuids (errno %d)\n", errno);
                        return false;
                }
                if (!sub_uid_open(O_CREAT | O_RDWR)) {
@@ -997,7 +997,7 @@ bool new_subid_range(struct subordinate_range *range, enum subid_type id_type, b
                break;
        case ID_TYPE_GID:
                if (!sub_gid_lock()) {
-                       printf("Failed loging subgids (errno %d)\n", errno);
+                       printf("Failed locking subgids (errno %d)\n", errno);
                        return false;
                }
                if (!sub_gid_open(O_CREAT | O_RDWR)) {
@@ -1057,7 +1057,7 @@ bool release_subid_range(struct subordinate_range *range, enum subid_type id_typ
        switch (id_type) {
        case ID_TYPE_UID:
                if (!sub_uid_lock()) {
-                       printf("Failed loging subuids (errno %d)\n", errno);
+                       printf("Failed locking subuids (errno %d)\n", errno);
                        return false;
                }
                if (!sub_uid_open(O_CREAT | O_RDWR)) {
@@ -1069,7 +1069,7 @@ bool release_subid_range(struct subordinate_range *range, enum subid_type id_typ
                break;
        case ID_TYPE_GID:
                if (!sub_gid_lock()) {
-                       printf("Failed loging subgids (errno %d)\n", errno);
+                       printf("Failed locking subgids (errno %d)\n", errno);
                        return false;
                }
                if (!sub_gid_open(O_CREAT | O_RDWR)) {
index 7e1342cad47a900839c9520aa9156498d7540090..78092898dab229d75745fbd3e86cd5db66e1110d 100644 (file)
       <varlistentry condition="gshadow">
        <term><filename>/etc/gshadow</filename></term>
        <listitem>
-         <para>Secure group account informatio.</para>
+         <para>Secure group account information</para>
        </listitem>
       </varlistentry>
       <varlistentry>
index d04dace11c1176f0c96d0b9c30a2fd34ae1cfd89..bdc007fe248bcbdeef7ca824fc8b082a4e5123a8 100644 (file)
@@ -396,7 +396,7 @@ int main (int argc, char **argv)
        (void) textdomain (PACKAGE);
 
        /*
-        * Save my name for error messages and save my real gid incase of
+        * Save my name for error messages and save my real gid in case of
         * errors. If there is an error i have to exec a new login shell for
         * the user since her old shell won't have fork'd to create the
         * process. Skip over the program name to the next command line
@@ -625,7 +625,7 @@ int main (int argc, char **argv)
        }
 #endif                          /* HAVE_SETGROUPS */
        /*
-        * For splitted groups (due to limitations of NIS), check all
+        * For split groups (due to limitations of NIS), check all
         * groups of the same GID like the requested group for
         * membership of the current user.
         */
index d167e9e9c3748a9190a34c115c2aa68b9df34d47..1ade54a2aaba960067be8230073ca204f92efeb3 100644 (file)
@@ -409,7 +409,7 @@ static void get_defaults (void)
                if (MATCH (buf, DGROUPS)) {
                        if (get_groups (cp) != 0) {
                                fprintf (stderr,
-                                        _("%s: the '%s' configuraton in %s has an invalid group, ignoring the bad group\n"),
+                                        _("%s: the '%s' configuration in %s has an invalid group, ignoring the bad group\n"),
                                         Prog, DGROUPS, default_file);
                        }
                        if (user_groups[0] != NULL) {
@@ -2323,7 +2323,7 @@ static void create_home (void)
                        strcat (path, cp);
                        if (access (path, F_OK) != 0) {
                                /* Check if parent directory is BTRFS, fail if requesting
-                                  subvolume but no BTRFS. The paths cound be different by the
+                                  subvolume but no BTRFS. The paths could be different by the
                                   trailing slash
                                 */
 #if WITH_BTRFS