mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-12 10:02:52 +03:00
Ticket #2821: Fixed defect: ftp to a second site does not work
Steps to reproduce: * cd ftp://ftp.gnome.org/ * Run "cd" in the panel where the remote site is open * cd ftp://ftp.kernel.org/ Actual result: The directory content from ftp.gnome.org FTP-server. Expected results: The directory content from kernel.org FTP-server. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
d235c71dae
commit
a2a01d94e9
@ -1087,6 +1087,8 @@ vfs_get_super_by_vpath (const vfs_path_t * vpath)
|
|||||||
goto ret;
|
goto ret;
|
||||||
if (i != 0)
|
if (i != 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
super = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret:
|
ret:
|
||||||
@ -1118,7 +1120,7 @@ vfs_s_get_path (const vfs_path_t * vpath, struct vfs_s_super **archive, int flag
|
|||||||
if (path_element->path != NULL)
|
if (path_element->path != NULL)
|
||||||
retval = path_element->path;
|
retval = path_element->path;
|
||||||
|
|
||||||
super = vfs_get_super_by_vpath(vpath);
|
super = vfs_get_super_by_vpath (vpath);
|
||||||
if (super != NULL)
|
if (super != NULL)
|
||||||
goto return_success;
|
goto return_success;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user