summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko2007-06-14 07:53:06 +0000
committerDenis Vlasenko2007-06-14 07:53:06 +0000
commitd8540f71ac8d17ef461e2d52b3f63bd78b3c2c7e (patch)
tree2ab2ac263ef155ec9ea142ff297f89e634297bcf /loginutils
parent1adf681e87f5cd81841f8a3d84a8d9bdf83c7406 (diff)
downloadbusybox-d8540f71ac8d17ef461e2d52b3f63bd78b3c2c7e.zip
busybox-d8540f71ac8d17ef461e2d52b3f63bd78b3c2c7e.tar.gz
init: make sure fd 0,1,2 are not closed, + related optimizations.
init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
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);