Ticket #2635: mc adds spaces an the beginning of all files/dirs at the ftp server
commit93af7b98e3e9bce31c86077bdbcf607916b534c7
authorSergey <sergemp@mail.ru>
Thu, 20 Oct 2011 11:28:39 +0000 (20 14:28 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Mon, 24 Oct 2011 18:16:31 +0000 (24 21:16 +0300)
treeef64652c1b3d4bec72b02db61dccb1b1bb6b3553
parenta39e855ab44eb40deb8b6554de2255a16290df34
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>
lib/vfs/mc-vfs/parse_ls_vga.c