]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lastlog2: correct the grammar of an error message, and drop two periods
authorBenno Schulenberg <bensberg@telfort.nl>
Thu, 4 Jun 2026 09:52:52 +0000 (11:52 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jun 2026 11:06:02 +0000 (13:06 +0200)
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 <bensberg@telfort.nl>
misc-utils/lastlog2.c

index c5e518c3b9f14cd695520ba60db0493b194246c0..838f27db8e0c3f9498d41dba1666e217ebf82efc 100644 (file)
@@ -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;
                }