Opened 16 years ago

Last modified 16 years ago

#3458 closed Bug report

Current directory incorrectly parsed when unquoted

Reported by: o0verhaul Owned by:
Priority: normal Component: Other
Keywords: Cc: o0verhaul, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

There is a logic problem in CControlSocket::ParsePwdReply when the server does not quote the directory path. The new strategy is to search for a space following the presumed start of the file name. But the position of the second space is calculated relative to the start of the first, yet used as if it were absolute in the original string.

Instead of saying:

reply = reply.Mid(pos1 + 1, pos2 - pos1 - 1);

It should be:

reply = reply.Mid(pos1 + 1, pos2);

Change History (2)

comment:1 by Tim Kosse, 16 years ago

Thanks for reporting. This issue has been fixed in the SVN
repository and will be available with the next version.

comment:2 by Tim Kosse, 16 years ago

Consider upgrading to a proper server.

Note: See TracTickets for help on using tickets.