57083eef2b
make ssh2 connects working w/o the ssh-askpass utility (fix the code how to acquire a [pt]ty pair) The user may still choose the ssh-askpass way inside the application. That way is just no longer forced (as i did with the last update). Now it's possible to choose between direct password-sending from the application, or sending the password with the ssh-askass utility. PR: ports/51391 Submitted by: Oliver Lehmann <lehmann@ans-netz.de>
12 lines
408 B
C
12 lines
408 B
C
--- lib/misc.c.orig Fri Dec 6 03:28:19 2002
|
|
+++ lib/misc.c Fri Apr 25 01:51:48 2003
|
|
@@ -881,7 +881,8 @@
|
|
diff += rd;
|
|
tempstr[diff] = '\0';
|
|
|
|
- if (diff > 11 && strcmp (tempstr + diff - 10, "password: ") == 0)
|
|
+ if ( (strcmp (tempstr, "Password:") == 0) ||
|
|
+ (diff > 11 && strcmp (tempstr + diff - 10, "password: ") == 0) )
|
|
{
|
|
if (wrotepw)
|
|
{
|