• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

FFFTPのソースコードです。


Commit MetaInfo

Revision0e15e2357c8940b493952ca05daf8464fbd33d91 (tree)
Zeit2012-02-15 20:54:34
Autors_kawamoto <s_kawamoto@user...>
Commiters_kawamoto

Log Message

Fix bugs of uploading files with unique names.

Ändern Zusammenfassung

Diff

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/getput.c
+++ b/getput.c
@@ -2684,6 +2684,10 @@ static int UpLoadNonPassive(TRANSPACKET *Pkt)
26842684 iRetCode = command(Pkt->ctrl_skt, Reply, &Canceled[Pkt->ThreadCount], "%s", Buf);
26852685 if((iRetCode/100) == FTP_PRELIM)
26862686 {
2687+ // STOUの応答を処理
2688+ // 応答の形式に規格が無くファイル名を取得できないため属性変更を無効化
2689+ if(Pkt->Mode == EXIST_UNIQUE)
2690+ Pkt->Attr = -1;
26872691 // 同時接続対応
26882692 // if(SocksGet2ndBindReply(listen_socket, &data_socket) == FFFTP_FAIL)
26892693 if(SocksGet2ndBindReply(listen_socket, &data_socket, &Canceled[Pkt->ThreadCount]) == FFFTP_FAIL)
@@ -2840,6 +2844,10 @@ static int UpLoadPassive(TRANSPACKET *Pkt)
28402844 iRetCode = command(Pkt->ctrl_skt, Reply, &Canceled[Pkt->ThreadCount], "%s", Buf);
28412845 if(iRetCode/100 == FTP_PRELIM)
28422846 {
2847+ // STOUの応答を処理
2848+ // 応答の形式に規格が無くファイル名を取得できないため属性変更を無効化
2849+ if(Pkt->Mode == EXIST_UNIQUE)
2850+ Pkt->Attr = -1;
28432851 // 一部TYPE、STOR(RETR)、PORT(PASV)を並列に処理できないホストがあるため
28442852 ReleaseMutex(hListAccMutex);
28452853 // FTPS対応