diff options
author | Karel Zak | 2017-07-31 10:27:20 +0200 |
---|---|---|
committer | Karel Zak | 2017-07-31 10:27:20 +0200 |
commit | fe63c8a649a292e3262c764b1635b96d3bc98c65 (patch) | |
tree | 8064484accce6e11433c5b6ec409526247967e9d /term-utils/agetty.c | |
parent | libblkid: add HPE extended-XFS to known filesystems (diff) | |
download | kernel-qcow2-util-linux-fe63c8a649a292e3262c764b1635b96d3bc98c65.tar.gz kernel-qcow2-util-linux-fe63c8a649a292e3262c764b1635b96d3bc98c65.tar.xz kernel-qcow2-util-linux-fe63c8a649a292e3262c764b1635b96d3bc98c65.zip |
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>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 && |