1 |
slyfox 11/11/30 07:21:30 |
2 |
|
3 |
Added: mc-4.8.0-fix-ftp-spaces.patch |
4 |
Log: |
5 |
Fix annoying leading spaces in ftp directories (upstream patch) |
6 |
|
7 |
(Portage version: 2.2.0_alpha77_p1/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-misc/mc/files/mc-4.8.0-fix-ftp-spaces.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/files/mc-4.8.0-fix-ftp-spaces.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/files/mc-4.8.0-fix-ftp-spaces.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mc-4.8.0-fix-ftp-spaces.patch |
16 |
=================================================================== |
17 |
commit 95c553c46770f89f09c4408cbdf61ed76b4a8766 |
18 |
Author: Sergey <sergemp@××××.ru> |
19 |
Date: Thu Oct 20 14:28:39 2011 +0300 |
20 |
|
21 |
Ticket #2635: mc adds spaces an the beginning of all files/dirs at the ftp server |
22 |
|
23 |
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. |
24 |
|
25 |
Steps to reproduce: |
26 |
cd /#ftp:ftp.symantec.com |
27 |
|
28 |
Expected result: |
29 |
Correct list of files/directories |
30 |
|
31 |
Actual result: |
32 |
File/directory names with leading spaces |
33 |
|
34 |
Signed-off-by: Slava Zanko <slavazanko@×××××.com> |
35 |
|
36 |
diff --git a/lib/vfs/parse_ls_vga.c b/lib/vfs/parse_ls_vga.c |
37 |
index 8091c14..5424ee9 100644 |
38 |
--- a/lib/vfs/parse_ls_vga.c |
39 |
+++ b/lib/vfs/parse_ls_vga.c |
40 |
@@ -657,7 +657,7 @@ vfs_split_text (char *p) |
41 |
void |
42 |
vfs_parse_ls_lga_init (void) |
43 |
{ |
44 |
- vfs_parce_ls_final_num_spaces = 0; |
45 |
+ vfs_parce_ls_final_num_spaces = 1; |
46 |
} |
47 |
|
48 |
/* --------------------------------------------------------------------------------------------- */ |