From 95c553c46770f89f09c4408cbdf61ed76b4a8766 Mon Sep 17 00:00:00 2001 From: Sergey Date: Thu, 20 Oct 2011 14:28:39 +0300 Subject: [PATCH] Ticket #2635: mc adds spaces an the beginning of all files/dirs at the ftp server For FTP servers, that do not send ".." in directory listing, mc adds one space to the name of every file and directory. Attached patch should fix this problem. Steps to reproduce: cd /#ftp:ftp.symantec.com Expected result: Correct list of files/directories Actual result: File/directory names with leading spaces Signed-off-by: Slava Zanko --- lib/vfs/parse_ls_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vfs/parse_ls_vga.c b/lib/vfs/parse_ls_vga.c index 8091c1428..5424ee9c1 100644 --- a/lib/vfs/parse_ls_vga.c +++ b/lib/vfs/parse_ls_vga.c @@ -657,7 +657,7 @@ vfs_split_text (char *p) void vfs_parse_ls_lga_init (void) { - vfs_parce_ls_final_num_spaces = 0; + vfs_parce_ls_final_num_spaces = 1; } /* --------------------------------------------------------------------------------------------- */ -- 2.11.4.GIT