Skip to content

Commit

Permalink
Bug 1074: Support for FTP servers with Windows-like paths (fixed agai…
Browse files Browse the repository at this point in the history
…n after broken in 5.8.2 by Bug 1400)

https://winscp.net/tracker/1074

Source commit: a71132f652a2e7164ac5932e0ed4b2cd6236d0ff
  • Loading branch information
martinprikryl committed Jan 25, 2018
1 parent 3bced92 commit c4eedd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/FtpFileSystem.cpp
Expand Up @@ -2400,7 +2400,7 @@ void __fastcall TFTPFileSystem::ReadCurrentDirectory()

if (Result)
{
if ((Path.Length() > 0) && (Path[1] != L'/'))
if ((Path.Length() > 0) && !UnixIsAbsolutePath(Path))
{
Path = L"/" + Path;
}
Expand Down

0 comments on commit c4eedd3

Please sign in to comment.