]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: fix --login-pause logic
authorKarel Zak <kzak@redhat.com>
Mon, 31 Jul 2017 08:27:20 +0000 (10:27 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 31 Jul 2017 08:27:20 +0000 (10:27 +0200)
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>
term-utils/agetty.c

index e5f2ff2292fc8312b62eac676ef19619c5e7c831..cc0cc3f620e4485cbd36578db3d8b76bf3e0efd8 100644 (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 &&