[PATCH 3/3] lastlog2: correct the grammar of an error message, and drop two periods

Benno Schulenberg <[email protected]> Thu, 4 Jun 2026 11:52:52 +0200
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
The grammar of a similar message forty lines down is correct.

And a period at the end of an error message is inconsistent.

Signed-off-by: Benno Schulenberg <[email protected]>
---
 misc-utils/lastlog2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/misc-utils/lastlog2.c b/misc-utils/lastlog2.c
index c5e518c3b..838f27db8 100644
--- a/misc-utils/lastlog2.c
+++ b/misc-utils/lastlog2.c
@@ -236,7 +236,7 @@ int main(int argc, char **argv)
 	}
 
 	if ((Cflg + Sflg + iflg + jflg) > 1)
-		errx(EXIT_FAILURE, _("Option -C, -i, -j and -S cannot be used together"));
+		errx(EXIT_FAILURE, _("Options -C, -i, -j and -S cannot be used together"));
 
 	db_context = ll2_new_context(lastlog2_path);
 	if (!db_context)
@@ -281,7 +281,7 @@ int main(int argc, char **argv)
 		}
 
 		if ((Cflg || Sflg) && !has_user(user)) {
-			warnx(_("User '%s' does not exist."), user);
+			warnx(_("User '%s' does not exist"), user);
 			goto err;
 		}
 
@@ -324,7 +324,7 @@ int main(int argc, char **argv)
 		char *service = NULL;
 
 		if (!has_user(user)) {
-			warnx(_("User '%s' does not exist."), user);
+			warnx(_("User '%s' does not exist"), user);
 			goto err;
 		}
 
-- 
2.54.0