[KBear-cvs] kbear/kbear/plugins/ftpfind scandomainworker.cpp,1.5,1.6
Brought to you by:
kbjorn
From: <kb...@us...> - 2004-03-03 21:07:48
|
Update of /cvsroot/kbear/kbear/kbear/plugins/ftpfind In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18131/kbear/plugins/ftpfind Modified Files: scandomainworker.cpp Log Message: Fixed bug that caused login always failed Index: scandomainworker.cpp =================================================================== RCS file: /cvsroot/kbear/kbear/kbear/plugins/ftpfind/scandomainworker.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** scandomainworker.cpp 23 Aug 2003 07:47:50 -0000 1.5 --- scandomainworker.cpp 3 Mar 2004 20:55:00 -0000 1.6 *************** *** 297,304 **** int retval = readBlock( buffer, 1024 ); - regExp.setPattern( QString::fromLatin1("login ok") ); - regExp.setCaseSensitive( false ); ! if( retval > 0 && regExp.search( QString::fromLatin1( buffer ) ) < 0 ) { msg = i18n("Anonymous login denied!"); ScanDomainEvent* event = new ScanDomainEvent( this, ScanDomainEvent::LoginDenied, msg ); --- 297,306 ---- int retval = readBlock( buffer, 1024 ); ! /* ! regExp.setPattern( QString::fromLatin1("23") ); ! regExp.setCaseSensitive( false ); ! */ ! if( retval > 0 && strncmp( buffer, "331", 3) != 0 ) { msg = i18n("Anonymous login denied!"); ScanDomainEvent* event = new ScanDomainEvent( this, ScanDomainEvent::LoginDenied, msg ); *************** *** 314,317 **** --- 316,320 ---- // Check for a positive return code to see if the login really went through okay. + kdDebug() << k_funcinfo << QString(" Return message = %1").arg(buffer) << endl; if( retval > 0 && strncmp( buffer, "230", 3) == 0) { msg = i18n("Anonymous login accepted."); |