From 15a9a74040f51b18de2650d511914e0a5a83eee5 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Mon, 4 Jun 2012 17:00:03 +0300 Subject: [PATCH] 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 --- lib/vfs/direntry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vfs/direntry.c b/lib/vfs/direntry.c index 8ee544db4..016f96d45 100644 --- a/lib/vfs/direntry.c +++ b/lib/vfs/direntry.c @@ -1087,6 +1087,8 @@ vfs_get_super_by_vpath (const vfs_path_t * vpath) goto ret; if (i != 0) break; + + super = NULL; } 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) retval = path_element->path; - super = vfs_get_super_by_vpath(vpath); + super = vfs_get_super_by_vpath (vpath); if (super != NULL) goto return_success; -- 2.11.4.GIT