]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix typos
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 13 Sep 2024 19:30:52 +0000 (21:30 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 13 Sep 2024 20:27:08 +0000 (22:27 +0200)
Typos in comments and configure output, i.e. no functional change.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
configure.ac
lib/cleanup.c
lib/find_new_uid.c
lib/sgetpwent.c
src/chage.c
src/groupadd.c
src/newgidmap.c
src/newgrp.c
src/newuidmap.c
src/usermod.c

index bc89a44f361e47167bae17bf7b269d2f2a6d3d9b..abd73b1d8d1f0ee2329f62eb373a1cdc18d185e3 100644 (file)
@@ -689,7 +689,7 @@ AC_SUBST(LIBMD)
 if test "$with_skey" = "yes"; then
        AC_CHECK_LIB(md, MD5Init, [LIBMD=-lmd])
        AC_CHECK_LIB(skey, skeychallenge, [LIBSKEY=-lskey],
-               [AC_MSG_ERROR([liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2])])
+               [AC_MSG_ERROR([libskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2])])
        AC_DEFINE(SKEY, 1, [Define to support S/Key logins.])
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
                #include <stdio.h>
index c16f1bcddcd5dd6614bcfe9ef178ee49afb82f25..4a722212039ffd827d24c5bec7f6bd2d915fb647 100644 (file)
@@ -44,7 +44,7 @@ void do_cleanups (void)
 {
        unsigned int i;
 
-       /* Make sure there were no overflow */
+       /* Make sure there were no overflows */
        assert (NULL == cleanup_functions[CLEANUP_FUNCTIONS-1]);
 
        if (getpid () != cleanup_pid) {
index abbc8e76ecd5f8d1195408590355b081258fc95f..f2ca60ff553c6d0b4185a5d047bf7c519677df35 100644 (file)
@@ -305,7 +305,7 @@ int find_new_uid(bool sys_user,
                                return 0;
                        } else if (result == EEXIST || result == EINVAL) {
                                /*
-                                * This GID is in use or unusable, we'll
+                                * This UID is in use or unusable, we'll
                                 * continue to the next.
                                 */
                        } else {
@@ -351,7 +351,7 @@ int find_new_uid(bool sys_user,
                                        return 0;
                                } else if (result == EEXIST || result == EINVAL) {
                                        /*
-                                        * This GID is in use or unusable, we'll
+                                        * This UID is in use or unusable, we'll
                                         * continue to the next.
                                         */
                                } else {
@@ -414,7 +414,7 @@ int find_new_uid(bool sys_user,
                                return 0;
                        } else if (result == EEXIST || result == EINVAL) {
                                /*
-                                * This GID is in use or unusable, we'll
+                                * This UID is in use or unusable, we'll
                                 * continue to the next.
                                 */
                        } else {
@@ -460,7 +460,7 @@ int find_new_uid(bool sys_user,
                                        return 0;
                                } else if (result == EEXIST || result == EINVAL) {
                                        /*
-                                        * This GID is in use or unusable, we'll
+                                        * This UID is in use or unusable, we'll
                                         * continue to the next.
                                         */
                                } else {
index ad9ace3c57c00526f122bf5235257e4f8a88fe9a..20136695d1092e9358dc22ae1bcf1abf69b8a1b6 100644 (file)
@@ -80,7 +80,7 @@ sgetpwent(const char *buf)
                return NULL;
 
        /*
-        * Each of the fields is converted the appropriate data type
+        * Each of the fields is converted to the appropriate data type
         * and the result assigned to the password structure.  If the
         * UID or GID does not convert to an integer value, a NULL
         * pointer is returned.
index 409b54a0f60ee7b317df33bd8daa09320a9f4a17..796906035acab07ef0df45112dbce57daaf88d17 100644 (file)
@@ -566,7 +566,7 @@ static void open_files (bool readonly)
        /*
         * For shadow password files we have to lock the file and read in
         * the entries as was done for the password file. The user entries
-        * does not have to exist in this case; a new entry will be created
+        * do not have to exist in this case; a new entry will be created
         * for this user if one does not exist already.
         */
        if (!readonly) {
index d38c4ddfcf2ab8c52c05edd608de5848feea38db..1623ba804412c936d7709da5327a1022a0340c12 100644 (file)
@@ -480,11 +480,11 @@ static void check_flags (void)
        check_new_name ();
 
        /*
-        * Check if the group already exist.
+        * Check if the group already exists.
         */
        /* local, no need for xgetgrnam */
        if (prefix_getgrnam (group_name) != NULL) {
-               /* The group already exist */
+               /* The group already exists */
                if (fflg) {
                        /* OK, no need to do anything */
                        exit (E_SUCCESS);
@@ -496,7 +496,7 @@ static void check_flags (void)
        }
 
        if (gflg && (prefix_getgrgid (group_id) != NULL)) {
-               /* A GID was specified, and a group already exist with that GID
+               /* A GID was specified, and a group already exists with that GID
                 *  - either we will use this GID anyway (-o)
                 *  - either we ignore the specified GID and
                 *    we will use another one (-f)
index 96a89de72deb2c1b734c22f5c111181c8cce2f31..b1bf80e2c4f09200b67f24d8880373a5fdda90f9 100644 (file)
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
                if (proc_dir_fd < 0)
                        usage();
        }
-       /* Who am i? */
+       /* Who am I? */
        pw = get_my_pwent ();
        if (NULL == pw) {
                fprintf (stderr,
index 88d97758f433244b96b448dff11674f0515c3b08..11fc6f82a94627f74f677bd7b585e08372e18f8e 100644 (file)
@@ -400,7 +400,7 @@ int main (int argc, char **argv)
 
        /*
         * 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
+        * 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
         * argument.
@@ -460,7 +460,7 @@ int main (int argc, char **argv)
         * for sg causes a command string to be executed.
         *
         * The next argument, if present, must be the new group name. Any
-        * remaining remaining arguments will be used to execute a command
+        * remaining arguments will be used to execute a command
         * as the named group. If the group name isn't present, I just use
         * the login group ID of the current user.
         *
@@ -539,9 +539,9 @@ int main (int argc, char **argv)
 
 #ifdef HAVE_SETGROUPS
        /*
-        * get the current users groupset. The new group will be added to
+        * get the current user's groupset. The new group will be added to
         * the concurrent groupset if there is room, otherwise you get a
-        * nasty message but at least your real and effective group id's are
+        * nasty message but at least your real and effective group ids are
         * set.
         */
        /* don't use getgroups(0, 0) - it doesn't work on some systems */
@@ -576,7 +576,7 @@ int main (int argc, char **argv)
         * now we put her in the new group. The password file entry for her
         * current user id has been gotten. If there was no optional group
         * argument she will have her real and effective group id set to the
-        * set to the value from her password file entry.
+        * value from her password file entry.
         *
         * If run as newgrp, or as sg with no command, this process exec's
         * an interactive subshell with the effective GID of the new group.
@@ -677,8 +677,8 @@ int main (int argc, char **argv)
 #ifdef HAVE_SETGROUPS
        /*
         * I am going to try to add her new group id to her concurrent group
-        * set. If the group id is already present i'll just skip this part.
-        * If the group doesn't fit, i'll complain loudly and skip this
+        * set. If the group id is already present I'll just skip this part.
+        * If the group doesn't fit, I'll complain loudly and skip this
         * part.
         */
        for (i = 0; i < ngroups; i++) {
@@ -737,7 +737,7 @@ int main (int argc, char **argv)
        }
 
        /*
-        * See if the "-c" flag was used. If it was, i just create a shell
+        * See if the "-c" flag was used. If it was, I just create a shell
         * command for her using the argument that followed the "-c" flag.
         */
        if (cflag) {
@@ -753,7 +753,7 @@ int main (int argc, char **argv)
        }
 
        /*
-        * I have to get the pathname of her login shell. As a favor, i'll
+        * I have to get the pathname of her login shell. As a favor, I'll
         * try her environment for a $SHELL value first, and then try the
         * password file entry. Obviously this shouldn't be in the
         * restricted command directory since it could be used to leave the
@@ -785,7 +785,7 @@ int main (int argc, char **argv)
        progbase = Basename (prog);
 
        /*
-        * Switch back to her home directory if i am doing login
+        * Switch back to her home directory if I am doing login
         * initialization.
         */
        if (initflag) {
index e2652b50ca04ba94bb3ffa6d2aa27f3869b6eae5..8deb06f0b556a2859163f5d30497492ca1a575dc 100644 (file)
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
                        usage();
        }
 
-       /* Who am i? */
+       /* Who am I? */
        pw = get_my_pwent ();
        if (NULL == pw) {
                fprintf (stderr,
index 0f7f1e23520443ee1a24e17fd9a53ae6bd5ec65e..e994132c8c760c2b9402b25025fcb7b21efb6dfe 100644 (file)
@@ -1803,7 +1803,7 @@ static void move_home (void)
 
        if (access (prefix_user_newhome, F_OK) == 0) {
                /*
-                * If the new home directory already exist, the user
+                * If the new home directory already exists, the user
                 * should not use -m.
                 */
                fprintf (stderr,