Ticket #2635: mc adds spaces an the beginning of all files/dirs at the ftp server
commit95c553c46770f89f09c4408cbdf61ed76b4a8766
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:17:28 +0000 (24 21:17 +0300)
treeae23c3a047ab44cef2a86700f81f8a9cc512a74c
parent83002445e3b2f3b39b2ee3196d1fe54c72b9bcb3
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/parse_ls_vga.c