From: Samanta Navarro Date: Thu, 16 Feb 2023 11:52:23 +0000 (+0000) Subject: Fix typos X-Git-Tag: 4.14.0-rc1~177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5d1932370a31dbd98e97bd330b62eb33a2202e3;p=thirdparty%2Fshadow.git Fix typos It is a user, not an user. Signed-off-by: Samanta Navarro --- diff --git a/libmisc/cleanup_user.c b/libmisc/cleanup_user.c index 686b380b4..da9260e59 100644 --- a/libmisc/cleanup_user.c +++ b/libmisc/cleanup_user.c @@ -16,9 +16,9 @@ #include "shadowlog.h" /* - * cleanup_report_add_user - Report failure to add an user to the system + * cleanup_report_add_user - Report failure to add a user to the system * - * It should be registered when it is decided to add an user to the system. + * It should be registered when it is decided to add a user to the system. */ void cleanup_report_add_user (void *user_name) { @@ -51,10 +51,10 @@ void cleanup_report_mod_passwd (void *cleanup_info) } /* - * cleanup_report_add_user_passwd - Report failure to add an user to + * cleanup_report_add_user_passwd - Report failure to add a user to * /etc/passwd * - * It should be registered when it is decided to add an user to the + * It should be registered when it is decided to add a user to the * /etc/passwd database. */ void cleanup_report_add_user_passwd (void *user_name) @@ -71,10 +71,10 @@ void cleanup_report_add_user_passwd (void *user_name) } /* - * cleanup_report_add_user_shadow - Report failure to add an user to + * cleanup_report_add_user_shadow - Report failure to add a user to * /etc/shadow * - * It should be registered when it is decided to add an user to the + * It should be registered when it is decided to add a user to the * /etc/shadow database. */ void cleanup_report_add_user_shadow (void *user_name) diff --git a/libmisc/user_busy.c b/libmisc/user_busy.c index 1a4ea3411..53d9c589c 100644 --- a/libmisc/user_busy.c +++ b/libmisc/user_busy.c @@ -32,7 +32,7 @@ static int user_busy_utmp (const char *name); #endif /* !__linux__ */ /* - * user_busy - check if an user if currently running processes + * user_busy - check if a user is currently running processes */ int user_busy (const char *name, uid_t uid) { diff --git a/src/groupmems.c b/src/groupmems.c index a962c055f..50c5fc868 100644 --- a/src/groupmems.c +++ b/src/groupmems.c @@ -89,7 +89,7 @@ static char *whoami (void) } /* - * add_user - Add an user to the specified group + * add_user - Add a user to the specified group */ static void add_user (const char *user, const struct group *grp) @@ -172,7 +172,7 @@ static void add_user (const char *user, } /* - * remove_user - Remove an user from a given group + * remove_user - Remove a user from a given group */ static void remove_user (const char *user, const struct group *grp) diff --git a/src/lastlog.c b/src/lastlog.c index 727650cae..6b9619740 100644 --- a/src/lastlog.c +++ b/src/lastlog.c @@ -50,7 +50,7 @@ static time_t inverse_seconds; /* that number of days in seconds */ static struct stat statbuf; /* fstat buffer for file size */ -static bool uflg = false; /* print only an user of range of users */ +static bool uflg = false; /* print only a user of range of users */ static bool tflg = false; /* print is restricted to most recent days */ static bool bflg = false; /* print excludes most recent days */ static bool Cflg = false; /* clear record for user */ @@ -69,7 +69,7 @@ usage (int status) "Options:\n"), Prog); (void) fputs (_(" -b, --before DAYS print only lastlog records older than DAYS\n"), usageout); - (void) fputs (_(" -C, --clear clear lastlog record of an user (usable only with -u)\n"), usageout); + (void) fputs (_(" -C, --clear clear lastlog record of a user (usable only with -u)\n"), usageout); (void) fputs (_(" -h, --help display this help message and exit\n"), usageout); (void) fputs (_(" -R, --root CHROOT_DIR directory to chroot into\n"), usageout); (void) fputs (_(" -S, --set set lastlog record to current time (usable only with -u)\n"), usageout); diff --git a/src/login.c b/src/login.c index f8edd5a2e..5f31a4174 100644 --- a/src/login.c +++ b/src/login.c @@ -430,7 +430,7 @@ static void get_pam_user (char **ptr_pam_user) /* * get_failent_user - Return a string that can be used to log failure - * from an user. + * from a user. * * This will be either the user argument, or "UNKNOWN". * diff --git a/src/login_nopam.c b/src/login_nopam.c index 82ccdc435..4b0f6882a 100644 --- a/src/login_nopam.c +++ b/src/login_nopam.c @@ -243,7 +243,7 @@ static bool user_match (const char *tok, const char *string) } #ifdef PRIMARY_GROUP_MATCH /* - * If the string is an user whose initial GID matches the token, + * If the string is a user whose initial GID matches the token, * accept it. May avoid excessively long lines in /etc/group. * Radu-Adrian Feurdean * diff --git a/src/newusers.c b/src/newusers.c index 45b6954a3..670168e63 100644 --- a/src/newusers.c +++ b/src/newusers.c @@ -1126,7 +1126,7 @@ int main (int argc, char **argv) } /* - * First check if we have to create or update an user + * First check if we have to create or update a user */ pw = pw_locate (fields[0]); /* local, no need for xgetpwnam */