From fe63c8a649a292e3262c764b1635b96d3bc98c65 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 31 Jul 2017 10:27:20 +0200 Subject: 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 --- term-utils/agetty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'term-utils/agetty.c') diff --git a/term-utils/agetty.c b/term-utils/agetty.c index e5f2ff229..cc0cc3f62 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 && -- cgit v1.2.3-55-g7522