]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE10-ftp_250.patch
- updated to 2.5.STABLE11
[packages/squid.git] / squid-2.5.STABLE10-ftp_250.patch
CommitLineData
d29ec517 1Index: squid/src/ftp.c
2diff -c squid/src/ftp.c:1.316.2.29 squid/src/ftp.c:1.316.2.30
3*** squid/src/ftp.c:1.316.2.29 Thu Sep 1 16:14:45 2005
4--- squid/src/ftp.c Thu Sep 1 16:28:29 2005
5***************
6*** 2279,2285 ****
7 {
8 int code = ftpState->ctrl.replycode;
9 debug(9, 3) ("This is ftpReadTransferDone\n");
10! if (code == 226) {
11 /* Connection closed; retrieval done. */
12 if (ftpState->flags.html_header_sent)
13 ftpListingFinish(ftpState);
14--- 2279,2285 ----
15 {
16 int code = ftpState->ctrl.replycode;
17 debug(9, 3) ("This is ftpReadTransferDone\n");
18! if (code == 226 || code == 250) {
19 /* Connection closed; retrieval done. */
20 if (ftpState->flags.html_header_sent)
21 ftpListingFinish(ftpState);
22***************
23*** 2345,2351 ****
24 {
25 int code = ftpState->ctrl.replycode;
26 debug(9, 3) ("This is ftpWriteTransferDone\n");
27! if (code != 226) {
28 debug(9, 1) ("ftpReadTransferDone: Got code %d after sending data\n",
29 code);
30 ftpFailed(ftpState, ERR_FTP_PUT_ERROR);
31--- 2345,2351 ----
32 {
33 int code = ftpState->ctrl.replycode;
34 debug(9, 3) ("This is ftpWriteTransferDone\n");
35! if (!(code == 226 || code == 250)) {
36 debug(9, 1) ("ftpReadTransferDone: Got code %d after sending data\n",
37 code);
38 ftpFailed(ftpState, ERR_FTP_PUT_ERROR);
39***************
40*** 2521,2527 ****
41 storeUrl(ftpState->entry), code);
42 if (cbdataValid(ftpState))
43 debug(9, 5) ("ftpSendReply: ftpState (%p) is valid!\n", ftpState);
44! if (code == 226) {
45 err_code = (ftpState->mdtm > 0) ? ERR_FTP_PUT_MODIFIED : ERR_FTP_PUT_CREATED;
46 http_code = (ftpState->mdtm > 0) ? HTTP_ACCEPTED : HTTP_CREATED;
47 } else if (code == 227) {
48--- 2521,2527 ----
49 storeUrl(ftpState->entry), code);
50 if (cbdataValid(ftpState))
51 debug(9, 5) ("ftpSendReply: ftpState (%p) is valid!\n", ftpState);
52! if (code == 226 || code == 250) {
53 err_code = (ftpState->mdtm > 0) ? ERR_FTP_PUT_MODIFIED : ERR_FTP_PUT_CREATED;
54 http_code = (ftpState->mdtm > 0) ? HTTP_ACCEPTED : HTTP_CREATED;
55 } else if (code == 227) {
This page took 0.08903 seconds and 4 git commands to generate.