From d8540f71ac8d17ef461e2d52b3f63bd78b3c2c7e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 14 Jun 2007 07:53:06 +0000 Subject: init: make sure fd 0,1,2 are not closed, + related optimizations. init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18 --- loginutils/login.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'loginutils/login.c') diff --git a/loginutils/login.c b/loginutils/login.c index 0f71a2aa9..d69e3ce51 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); -- cgit v1.2.3