Read password with des_read_pw_string. getpass truncates it too much.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@409 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user