diff lib/sshv2.c @ 232:b8d14c2c3097

2003-7-25 Brian Masney <masneyb@gftp.org> * lib/pty.c - prefer to use openpty() instead of grantpt() if it is available (for FreeBSD) * lib/sshv2.c - fixes for FreeBSD password prompt (from Oliver Lehmann <oliver@FreeBSD.ORG>) * src/gtk/gftp-gtk.h src/text/gftp-text.h - added __attribute__((format(printf, 3, 4))) to logging functions (from Oliver Lehmann <oliver@FreeBSD.ORG>)
author masneyb
date Fri, 25 Jul 2003 20:21:26 +0000
parents f330309d2f17
children b42e7233533a
line wrap: on
line diff
--- a/lib/sshv2.c	Thu Jul 24 02:28:54 2003 +0000
+++ b/lib/sshv2.c	Fri Jul 25 20:21:26 2003 +0000
@@ -291,7 +291,8 @@
       diff += rd;
       tempstr[diff] = '\0'; 
 
-      if (diff >= 10 && strcmp (tempstr + diff - 9, "assword: ") == 0)
+      if ( (strcmp (tempstr, "Password:") == 0) || 
+           (diff >= 10 && strcmp (tempstr + diff - 9, "assword: ") == 0))
         {
           if (wrotepw)
             {