summaryrefslogtreecommitdiff
path: root/ftp.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-07-12 20:11:08 +0000
committerewt <devnull@localhost>1996-07-12 20:11:08 +0000
commite837ec5148fc320288caecbae81144861450766c (patch)
treee366c1da163a47bed276c1e4ac8227fb6ef3f019 /ftp.c
parent54ba2f084059849768e641cc0b1254b3dd33b6df (diff)
downloadrpm-e837ec5148fc320288caecbae81144861450766c.tar.gz
rpm-e837ec5148fc320288caecbae81144861450766c.tar.bz2
rpm-e837ec5148fc320288caecbae81144861450766c.zip
removed message() calls to use code in install
CVS patchset: 802 CVS date: 1996/07/12 20:11:08
Diffstat (limited to 'ftp.c')
-rw-r--r--ftp.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/ftp.c b/ftp.c
index 515d70b6a..b02e817cc 100644
--- a/ftp.c
+++ b/ftp.c
@@ -18,7 +18,6 @@
#define BUFFER_SIZE 4096
#include "ftp.h"
-#include "lib/messages.h"
static int ftpCheckResponse(int sock, char ** str);
static int ftpCommand(int sock, char * command, ...);
@@ -178,8 +177,6 @@ int ftpOpen(char * host, char * name, char * password) {
destPort.sin_port = htons(IPPORT_FTP);
destPort.sin_addr = serverAddress;
- message(MESS_DEBUG, "establishing connection\n");
-
if (connect(sock, (struct sockaddr *) &destPort, sizeof(destPort))) {
close(sock);
return FTPERR_FAILED_CONNECT;
@@ -205,8 +202,6 @@ int ftpOpen(char * host, char * name, char * password) {
strcat(password, "@");
}
- message(MESS_DEBUG, "logging in\n");
-
if ((rc = ftpCommand(sock, "USER", name, NULL))) {
close(sock);
return rc;
@@ -222,8 +217,6 @@ int ftpOpen(char * host, char * name, char * password) {
return rc;
}
- message(MESS_DEBUG, "logged into ftp site\n");
-
return sock;
}
@@ -272,7 +265,6 @@ int ftpGetFile(int sock, char * remotename, int dest) {
char * retrCommand;
int rc;
- message(MESS_DEBUG, "sending PASV command\n");
if (write(sock, "PASV\n", 5) != 5) {
return FTPERR_SERVER_IO_ERROR;
}
@@ -318,7 +310,6 @@ int ftpGetFile(int sock, char * remotename, int dest) {
return FTPERR_FAILED_CONNECT;
}
- message(MESS_DEBUG, "sending RETR command\n");
retrCommand = alloca(strlen(remotename) + 20);
sprintf(retrCommand, "RETR %s\n", remotename);
i = strlen(retrCommand);
@@ -327,15 +318,12 @@ int ftpGetFile(int sock, char * remotename, int dest) {
return FTPERR_SERVER_IO_ERROR;
}
- message(MESS_DEBUG, "connecting to data socket\n");
if (connect(dataSocket, (struct sockaddr *) &dataAddress,
sizeof(dataAddress))) {
close(dataSocket);
return FTPERR_FAILED_DATA_CONNECT;
}
- message(MESS_DEBUG, "data socket open\n");
-
if (ftpCheckResponse(sock, NULL)) {
close(dataSocket);
return FTPERR_BAD_SERVER_RESPONSE;