From: Karel Zak Date: Mon, 31 Jul 2017 08:27:20 +0000 (+0200) Subject: agetty: fix --login-pause logic X-Git-Tag: v2.31-rc1~174 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe63c8a649a292e3262c764b1635b96d3bc98c65;p=thirdparty%2Futil-linux.git agetty: fix --login-pause logic Let's "eat" ENTER key when pressed after login pause prompt. Addresses: https://github.com/karelzak/util-linux/issues/491 Signed-off-by: Karel Zak --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index e5f2ff2292..cc0cc3f620 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1697,9 +1697,8 @@ again: termio_clear(STDOUT_FILENO); goto again; } -#else - getc(stdin); #endif + getc(stdin); } #ifdef KDGKBLED if (!(op->flags & F_NOHINTS) && !op->autolog &&