Re: util-linux agetty login prompt bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
 http://karelzak.blogspot.com




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux