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:
Assar Westerlund
1996-04-19 13:39:53 +00:00
parent e88938bfeb
commit 6f8081d058

View File

@@ -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) {