freebsd-ports/ftp/gftp/files/patch-lib::misc.c
Edwin Groothuis 57083eef2b update-port: ftp/gftp
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>
2003-04-29 03:09:11 +00:00

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