Ticket #2634: mc-4.7.5.5-spftp.patch

File mc-4.7.5.5-spftp.patch, 655 bytes (added by sergem, 13 years ago)
  • lib/vfs/mc-vfs/ftpfs.c

    Add detection of broken spftp servers, like ftp.symantec.com and download.nvidia.com
    diff -urN mc-4.7.5.5.orig/lib/vfs/mc-vfs/ftpfs.c mc-4.7.5.5/lib/vfs/mc-vfs/ftpfs.c
    old new  
    592592 
    593593        reply_up = g_ascii_strup (reply_string, -1); 
    594594        SUP.remote_is_amiga = strstr (reply_up, "AMIGA") != 0; 
     595        if (strstr (reply_up, " SPFTP/1.0.0000 SERVER ")) // handles `LIST -la` in a weird way 
     596            SUP.strict = RFC_STRICT; 
    595597        g_free (reply_up); 
    596598 
    597599        if (MEDATA->logfile)