diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 8af0b5d60..8a2e11458 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -200,8 +200,10 @@ login(char *host) if (n == CONTINUE) { if(auth_complete) pass = user; - else if (pass == NULL) - pass = getpass("Password:"); + else if (pass == NULL) { + des_read_pw_string (tmp, sizeof(tmp), "Password:", 0); + pass = tmp; + } n = command("PASS %s", pass); } if (n == CONTINUE) {