mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(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 <aborodin@vmail.ru>
This commit is contained in:
parent
ebb328353e
commit
556cf2274d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user