- Fixed that 'ssh://host/~/path' was wrongly translated into
   scp syntax; it must be 'host:~/path' instead of 'host:/~/path'
This commit is contained in:
Johannes Schlatow 2011-11-30 00:15:08 +01:00
parent d8d2060b39
commit 38aef0d8b4

View file

@ -294,7 +294,7 @@ void Uri::parse ()
}
// path is absolute for ssh:// syntax
if ( (_protocol == "ssh") && (pathDelimiter == "/") )
if ( (_protocol == "ssh") && (pathDelimiter == "/") && (_path[0] != '~') )
{
_path = "/" + _path;
}