* Re: util-linux agetty login prompt bug?
[not found] <CAAJw_Zu6DoimkrNJb1n1fKgq0MvqXM3ryF_ANR7O7nsZBMALig@mail.gmail.com>
@ 2022-05-02 13:43 ` Karel Zak
0 siblings, 0 replies; only message in thread
From: Karel Zak @ 2022-05-02 13:43 UTC (permalink / raw)
To: Jeff Chua; +Cc: util-linux
On Mon, May 02, 2022 at 08:42:22PM +0800, Jeff Chua wrote:
> Login prompt seems to be truncated. The length should be taken from
> LOGIN_PROMPT instead of LOGIN_PROCESS.
>
> --- utilx/term-utils/agetty.c 2022-03-30 23:14:12.055417041 +0800
> +++ utilx/term-utils/agetty.c 2022-05-02 20:31:43.177845547 +0800
>
> @@ -2149,7 +2149,7 @@
> if (!op->autolog) {
> /* Always show login prompt. */
> write_all(STDOUT_FILENO, LOGIN_PROMPT,
> - sizeof(LOGIN_PROCESS) - 1);
> + sizeof(LOGIN_PROMPT) - 1);
> }
> }
Ah, vim text completion could be dangerous :-)
Thanks for your report! Fixed.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-02 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAAJw_Zu6DoimkrNJb1n1fKgq0MvqXM3ryF_ANR7O7nsZBMALig@mail.gmail.com>
2022-05-02 13:43 ` util-linux agetty login prompt bug? Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).