]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: add line break after timeout message
authorKarel Zak <kzak@redhat.com>
Fri, 7 Nov 2025 10:57:58 +0000 (11:57 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Nov 2025 10:57:58 +0000 (11:57 +0100)
Just to make login(1) more user-friendly for those who do crazy things.

Based on https://github.com/util-linux/util-linux/pull/3842

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c

index ee42d081cbfe6772107aa5ffcd5e473c51edf686..402e178201e45f943a0088f3d251508e57615ff6 100644 (file)
@@ -1340,7 +1340,7 @@ static void initialize(int argc, char **argv, struct login_context *cxt)
        timeout = (unsigned int)getlogindefs_num("LOGIN_TIMEOUT", LOGIN_TIMEOUT);
 
        /* TRANSLATORS: The standard value for %u is 60. */
-       xasprintf(&timeout_msg, _("%s: timed out after %u seconds"),
+       xasprintf(&timeout_msg, _("%s: timed out after %u seconds\n"),
                                  program_invocation_short_name, timeout);
 
        signal(SIGALRM, timedout);