summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/login.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index 0f71a2a..d69e3ce 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -160,10 +160,11 @@ static ALWAYS_INLINE int check_securetty(void) { return 1; }
static void get_username_or_die(char *buf, int size_buf)
{
int c, cntdown;
+
cntdown = EMPTY_USERNAME_COUNT;
-prompt:
- /* skip whitespace */
+ prompt:
print_login_prompt();
+ /* skip whitespace */
do {
c = getchar();
if (c == EOF) exit(1);