[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 97203] Fails to connect to print server ftp. Sends 'syst'
From: Tim Hutt <tdh29 () cam ! ac ! uk>
Date: 2005-01-17 1:14:56
Message-ID: 20050117011456.31797.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=97203
------- Additional Comments From tdh29 cam ac uk 2005-01-17 02:14 -------
Oops. The printer type is in the log above. This seems to be the relevant code:
// Okay, we're logged in. If this is IIS 4, switch dir listing style to Unix:
// Thanks to jk soegaard net (Jens Kristian Søgaard) for this hint
Clearly gets to here.
if( ftpSendCmd( "syst" ) && rspbuf[0] == '2' )
{
if( !strncmp( rspbuf, "215 Windows_NT", 14 ) ) // should do for any version
{
(void)ftpSendCmd( "site dirstyle" );
// Check if it was already in Unix style
// Patch from Keith Refson <Keith.Refson earth ox ac uk>
if( !strncmp( rspbuf, "200 MSDOS-like directory output is on", 37 ))
//It was in Unix style already!
(void)ftpSendCmd( "site dirstyle" );
}
}
else
kdWarning(7102) << "syst failed" << endl;
if ( config()->readBoolEntry ("EnableAutoLoginMacro") )
ftpAutoLoginMacro ();
// Get the current working directory
kdDebug(7102) << "Searching for pwd" << endl;
Don't think it gets to here.
if ( !ftpSendCmd( "pwd" ) || rspbuf[0] != '2' )
{
kdDebug(7102) << "Couldn't issue pwd command" << endl;
error( ERR_COULD_NOT_LOGIN, i18n("Could not login to %1.").arg(m_host) ); // or anything better ?
return false;
}
Can't see how it can fail though.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic