Loweynet
Revisão | 0e15e2357c8940b493952ca05daf8464fbd33d91 (tree) |
---|---|
Hora | 2012-02-15 20:54:34 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix bugs of uploading files with unique names.
@@ -2684,6 +2684,10 @@ static int UpLoadNonPassive(TRANSPACKET *Pkt) | ||
2684 | 2684 | iRetCode = command(Pkt->ctrl_skt, Reply, &Canceled[Pkt->ThreadCount], "%s", Buf); |
2685 | 2685 | if((iRetCode/100) == FTP_PRELIM) |
2686 | 2686 | { |
2687 | + // STOUの応答を処理 | |
2688 | + // 応答の形式に規格が無くファイル名を取得できないため属性変更を無効化 | |
2689 | + if(Pkt->Mode == EXIST_UNIQUE) | |
2690 | + Pkt->Attr = -1; | |
2687 | 2691 | // 同時接続対応 |
2688 | 2692 | // if(SocksGet2ndBindReply(listen_socket, &data_socket) == FFFTP_FAIL) |
2689 | 2693 | if(SocksGet2ndBindReply(listen_socket, &data_socket, &Canceled[Pkt->ThreadCount]) == FFFTP_FAIL) |
@@ -2840,6 +2844,10 @@ static int UpLoadPassive(TRANSPACKET *Pkt) | ||
2840 | 2844 | iRetCode = command(Pkt->ctrl_skt, Reply, &Canceled[Pkt->ThreadCount], "%s", Buf); |
2841 | 2845 | if(iRetCode/100 == FTP_PRELIM) |
2842 | 2846 | { |
2847 | + // STOUの応答を処理 | |
2848 | + // 応答の形式に規格が無くファイル名を取得できないため属性変更を無効化 | |
2849 | + if(Pkt->Mode == EXIST_UNIQUE) | |
2850 | + Pkt->Attr = -1; | |
2843 | 2851 | // 一部TYPE、STOR(RETR)、PORT(PASV)を並列に処理できないホストがあるため |
2844 | 2852 | ReleaseMutex(hListAccMutex); |
2845 | 2853 | // FTPS対応 |