1
1

Ticket #2634: mc cannot navigate over spftp servers

Some FTP servers like ftp.symantec.com and download.nvidia.com
do not support parameters in LIST command. They don't fail on
LIST -la ... just ignore them. So mc shows only root directory.
Always.

Steps to reproduce:
cd /#ftp:ftp.symantec.com/public

Expected result:
Content of /public/ directory shown.

Actual result:
Content of root / directory shown instead.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
Sergey 2011-10-20 14:11:22 +03:00 коммит произвёл Slava Zanko
родитель 9bbcfaedd2
Коммит 2cd6dbfb53

Просмотреть файл

@ -627,6 +627,8 @@ ftpfs_login_server (struct vfs_class *me, struct vfs_s_super *super, const char
reply_up = g_ascii_strup (reply_string, -1);
SUP->remote_is_amiga = strstr (reply_up, "AMIGA") != 0;
if (strstr (reply_up, " SPFTP/1.0.0000 SERVER ")) /* handles `LIST -la` in a weird way */
SUP.strict = RFC_STRICT;
g_free (reply_up);
if (MEDATA->logfile)