• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Loweynet


Commit MetaInfo

Révision7a6845f150b5db9bc5e8f1b5ad6ac5e683d8ac3f (tree)
l'heure2013-05-08 23:20:58
Auteurs_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Message de Log

Fix bugs that MLSD responses that are not in lowercase are unrecognized.

Change Summary

Modification

Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
--- a/filelist.c
+++ b/filelist.c
@@ -3607,11 +3607,15 @@ static int AnalizeFileInfo(char *Str)
36073607 else
36083608 {
36093609 // MLSD対応
3610- if(FindField(Str, Tmp, 0, NO) == FFFTP_SUCCESS && strstr(Tmp, "type=") != NULL)
3610+ if(FindField(Str, Tmp, 0, NO) == FFFTP_SUCCESS)
36113611 {
3612- if(FindField2(Str, Tmp, ';', 1, NO) == FFFTP_SUCCESS && FindField2(Str, Tmp, '=', 1, NO) == FFFTP_SUCCESS)
3612+ _strlwr(Tmp);
3613+ if(strstr(Tmp, "type=") != NULL)
36133614 {
3614- Ret = LIST_MLSD;
3615+ if(FindField2(Str, Tmp, ';', 1, NO) == FFFTP_SUCCESS && FindField2(Str, Tmp, '=', 1, NO) == FFFTP_SUCCESS)
3616+ {
3617+ Ret = LIST_MLSD;
3618+ }
36153619 }
36163620 }
36173621