Based on a patch contributed by Sergey Vlasov <vsu@altlinux.ru> : In my testing with "qemu -net user" the 226 response to RETR was often received earlier than final packets of the data connection; this caused the received file to become truncated without any error indication. Fix this by adding an intermediate state FTP_TRANSFER between FTP_RETR and FTP_QUIT, so that the transfer is considered to be complete only when both the end of data connection is encountered and the final reply to the RETR command is received.tags/v0.9.4
|
|
||
| 35 |
|
35 |
|
| 36 |
|
36 |
|
| 37 |
|
37 |
|
|
38 |
|
|
| 38 |
|
39 |
|
| 39 |
|
40 |
|
| 40 |
|
41 |
|
|
|
||
| 116 |
|
117 |
|
| 117 |
|
118 |
|
| 118 |
|
119 |
|
| 119 |
|
|
|
|
120 |
|
|
| 120 |
|
121 |
|
| 121 |
|
122 |
|
| 122 |
|
123 |
|
| 123 |
|
124 |
|
| 124 |
|
|
|
|
125 |
|
|
|
126 |
|
|
| 125 |
|
127 |
|
| 126 |
|
|
|
|
128 |
|
|
| 127 |
|
129 |
|
| 128 |
|
130 |
|
| 129 |
|
131 |
|
|
|
||
| 169 |
|
171 |
|
| 170 |
|
172 |
|
| 171 |
|
173 |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
| 172 |
|
195 |
|
| 173 |
|
196 |
|
| 174 |
|
197 |
|
|
|
||
| 223 |
|
246 |
|
| 224 |
|
247 |
|
| 225 |
|
248 |
|
| 226 |
|
|
|
| 227 |
|
|
|
| 228 |
|
|
|
| 229 |
|
|
|
| 230 |
|
|
|
| 231 |
|
|
|
| 232 |
|
|
|
| 233 |
|
|
|
| 234 |
|
|
|
| 235 |
|
|
|
| 236 |
|
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
| 237 |
|
252 |
|
| 238 |
|
253 |
|
| 239 |
|
254 |
|
|
|
||
| 331 |
|
346 |
|
| 332 |
|
347 |
|
| 333 |
|
348 |
|
| 334 |
|
|
|
|
349 |
|
|
| 335 |
|
350 |
|
|
351 |
|
|
|
352 |
|
|
|
353 |
|
|
| 336 |
|
354 |
|
| 337 |
|
355 |
|
| 338 |
|
356 |
|