Lines Matching refs:rc

806     int rc;
826 rc = ftp_getrc_msg(ftp_ctrl, bb, message, sizeof message);
827 if (rc == -1 || rc == 421)
832 ap_log_rerror(APLOG_MARK, APLOG_TRACE2, 0, r, "<%3.3u %s", rc, message);
837 return rc;
846 int rc;
851 rc = proxy_ftp_command(apr_pstrcat(r->pool, "TYPE ", old_type, CRLF, NULL),
860 if (rc == -1) {
864 else if (rc == 421) {
868 else if (rc != 200 && rc != 504) {
873 else if (rc == 504) {
990 int len, rc;
1219 rc = proxy_ftp_command(NULL, r, origin, bb, &ftpmessage);
1220 if (rc == -1) {
1224 else if (rc == 421) {
1228 else if (rc == 120) {
1254 else if (rc != 220) {
1258 rc = proxy_ftp_command(apr_pstrcat(p, "USER ", user, CRLF, NULL),
1270 if (rc == -1) {
1274 else if (rc == 421) {
1278 else if (rc == 530) {
1283 else if (rc != 230 && rc != 331) {
1287 if (rc == 331) { /* send password */
1293 rc = proxy_ftp_command(apr_pstrcat(p, "PASS ", password, CRLF, NULL),
1303 if (rc == -1) {
1307 else if (rc == 421) {
1311 else if (rc == 332) {
1316 else if (rc == 530) {
1321 else if (rc != 230 && rc != 202) {
1336 rc = proxy_ftp_command("CWD /" CRLF, r, origin, bb, &ftpmessage);
1337 if (rc == -1) {
1341 else if (rc == 421) {
1369 rc = proxy_ftp_command(apr_pstrcat(p, "CWD ",
1381 if (rc == -1) {
1385 else if (rc == 421) {
1389 else if (rc == 550) {
1392 else if (rc != 250) {
1417 rc = proxy_ftp_command("EPSV" CRLF,
1426 if (rc == -1) {
1430 else if (rc == 421) {
1434 else if (rc != 229 && rc != 500 && rc != 501 && rc != 502) {
1437 else if (rc == 229) {
1512 rc = proxy_ftp_command("PASV" CRLF,
1521 if (rc == -1) {
1525 else if (rc == 421) {
1529 else if (rc != 227 && rc != 502) {
1532 else if (rc == 227) {
1655 rc = proxy_ftp_command(apr_psprintf(p, "PORT %d,%d,%d,%d,%d,%d" CRLF, h3, h2, h1, h0, p1, p0),
1664 if (rc == -1) {
1668 else if (rc == 421) {
1672 else if (rc != 200) {
1730 rc = proxy_ftp_command(apr_pstrcat(p, "SIZE ",
1733 if (rc == -1) {
1737 else if (rc == 421) {
1741 else if (rc == 213) {/* Size command ok */
1749 else if (rc == 550) { /* Not a regular file */
1753 rc = proxy_ftp_command(apr_pstrcat(p, "CWD ",
1764 if (rc == -1) {
1768 else if (rc == 421) {
1772 else if (rc == 550) {
1775 else if (rc != 250) {
1819 rc = proxy_ftp_command(apr_pstrcat(p, "MDTM ", ftp_escape_globbingchars(p, path, fdconf), CRLF, NULL),
1822 if (rc == 213) {
1860 rc = proxy_ftp_command(buf, r, origin, bb, &ftpmessage);
1861 /* rc is an intermediate response for the LIST or RETR commands */
1882 if (rc == -1) {
1886 else if (rc == 421) {
1890 else if (rc == 550) {
1898 rc = proxy_ftp_command(apr_pstrcat(p, "CWD ",
1909 if (rc == -1) {
1913 else if (rc == 421) {
1917 else if (rc == 550) {
1920 else if (rc != 250) {
1931 rc = proxy_ftp_command((cwd == NULL || strchr(cwd, '/') != NULL)
1935 /* rc is an intermediate response for the LIST command (125 transfer starting, 150 opening data connection) */
1936 if (rc == -1) {
1940 else if (rc == 421) {
1945 if (rc != 125 && rc != 150 && rc != 226 && rc != 250) {
2040 rc = ap_run_pre_connection(data, data_sock);
2041 if (rc != OK && rc != DONE) {
2043 "pre_connection setup failed (%d)", rc);
2046 return rc;