From 556cf2274da6d50540dcf6977a4061cb4483fdec Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 7 May 2022 11:48:00 +0300 Subject: [PATCH] (ftpfs_dir_load): fix building of remote path. Call of mc_build_filename(remote_path, ".") is pointless because the path canonicalization is performed and trailing "/." is removed. Signed-off-by: Andrew Borodin --- src/vfs/ftpfs/ftpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c index 4575f3d78..13fbc6650 100644 --- a/src/vfs/ftpfs/ftpfs.c +++ b/src/vfs/ftpfs/ftpfs.c @@ -1809,7 +1809,7 @@ ftpfs_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remot char *path; /* Trailing "/." is necessary if remote_path is a symlink */ - path = mc_build_filename (remote_path, ".", (char *) NULL); + path = g_strconcat (remote_path, PATH_SEP_STR ".", (char *) NULL); sock = ftpfs_open_data_connection (me, super, "LIST -la", path, TYPE_ASCII, 0); g_free (path); }