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 <slavazanko@gmail.com>
This commit is contained in:
Sergey 2011-10-20 14:28:39 +03:00 committed by Slava Zanko
parent 83002445e3
commit 95c553c467

View File

@ -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;
}
/* --------------------------------------------------------------------------------------------- */