On Sun, May 22, 2005 at 11:37:05PM +0200, Camille Huot wrote:
> <--- Enter passphrase for key '/home/cam/.ssh/identity': XXXX
> ---- Disconnecting
> ls: Login failed: Login incorrect
Does this patch help?
--
Alexander. | http://www.yars.free.net/~lav/
Index: Fish.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/Fish.cc,v
retrieving revision 1.62
diff -u -p -r1.62 Fish.cc
--- Fish.cc 4 Apr 2005 09:59:40 -0000 1.62
+++ Fish.cc 23 May 2005 10:28:15 -0000
@@ -678,7 +678,7 @@ int Fish::HandleReplies()
SetError(LOGIN_FAILED,_("Password required"));
return MOVED;
}
- if(password_sent>0)
+ if(password_sent>1)
{
SetError(LOGIN_FAILED,_("Login incorrect"));
return MOVED;
Index: SFtp.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/SFtp.cc,v
retrieving revision 1.45
diff -u -p -r1.45 SFtp.cc
--- SFtp.cc 20 May 2005 10:14:32 -0000 1.45
+++ SFtp.cc 23 May 2005 10:27:53 -0000
@@ -745,7 +745,7 @@ int SFtp::HandlePty()
SetError(LOGIN_FAILED,_("Password required"));
return MOVED;
}
- if(password_sent>0)
+ if(password_sent>1)
{
SetError(LOGIN_FAILED,_("Login incorrect"));
return MOVED;