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 <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-07-31 10:27:20 +02:00
parent aaf133265f
commit fe63c8a649
1 changed files with 1 additions and 2 deletions

View File

@ -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 &&