* [gentoo-commits] gentoo-x86 commit in app-misc/mc/files: mc-4.8.0-fix-ftp-spaces.patch
@ 2011-11-30 7:21 Sergei Trofimovich (slyfox)
0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich (slyfox) @ 2011-11-30 7:21 UTC (permalink / raw
To: gentoo-commits
slyfox 11/11/30 07:21:30
Added: mc-4.8.0-fix-ftp-spaces.patch
Log:
Fix annoying leading spaces in ftp directories (upstream patch)
(Portage version: 2.2.0_alpha77_p1/cvs/Linux x86_64)
Revision Changes Path
1.1 app-misc/mc/files/mc-4.8.0-fix-ftp-spaces.patch
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
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
Index: mc-4.8.0-fix-ftp-spaces.patch
===================================================================
commit 95c553c46770f89f09c4408cbdf61ed76b4a8766
Author: Sergey <sergemp@mail.ru>
Date: Thu Oct 20 14:28:39 2011 +0300
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>
diff --git a/lib/vfs/parse_ls_vga.c b/lib/vfs/parse_ls_vga.c
index 8091c14..5424ee9 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;
}
/* --------------------------------------------------------------------------------------------- */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-30 7:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 7:21 [gentoo-commits] gentoo-x86 commit in app-misc/mc/files: mc-4.8.0-fix-ftp-spaces.patch Sergei Trofimovich (slyfox)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox