The standard UNIX FTP (File Transfer Protocol) client
Go to file
Marcela Mašláňová 0a498631ce --- netkit-ftp-0.17/ftp/ftp.c.multiipv6 2006-08-02 15:03:26.000000000 +0200
netkit-ftp-0.17/ftp/ftp.c 2006-08-02 15:06:19.000000000 +0200 @@ -78,9
    +78,7 @@ #include <netinet/in.h> #include <netinet/ip.h> #include
    <arpa/ftp.h>
-#include <arpa/inet.h> #include <arpa/telnet.h>
- #include <stdio.h> #include <signal.h> #include <string.h> @@ -132,7
    +130,7 @@ static sigjmp_buf ptabort; static int ptabflg = 0; static int
    abrtflag = 0;
-struct sockaddr_in source;
struct sockaddr_storage source;
void lostpeer(int); extern int connected; @@ -154,8 +152,8 @@ char *
    hookup(const char *host, const char *port) {
- int s, tos, error, alen;
- socklen_t len;
int s, tos, error;
socklen_t len, alen; static char hostnamebuf[256]; struct addrinfo hints,
    *res, *res0; char hbuf[MAXHOSTNAMELEN], pbuf[NI_MAXSERV]; @@ -281,7
    +279,15 @@ printf("Connected to %s (%s).\n", hostname, hbuf); alen =
    sizeof(source); getsockname(s,(struct sockaddr*)&source, &alen);
- source.sin_port = 0; /* We just want the addr, not the port */
switch (source.ss_family) {
/* We just want the addr, not the port */
case AF_INET:
((struct sockaddr_in *) &source)->sin_port = 0;
break;
case AF_INET6:
((struct sockaddr_in6 *) &source)->sin6_port = 0;
break;
}
if (getreply(0) > 2) { /* read startup message from server */ if (cin) @@
    -1260,11 +1266,11 @@ return(1); }
if((multihome) &&
- bind(data, (struct sockaddr*)&source, sizeof(source)) == -1) {
- close(data);
- data = -1;
- perror("ftp multihome bind");
- return(1);
bind(data, (struct sockaddr *)&source, sizeof(source)) == -1) {
close(data);
data = -1;
perror("ftp multihome bind");
return(1); }
if (options & SO_DEBUG && setsockopt(data, SOL_SOCKET, SO_DEBUG, (char
    *)&on
2006-08-02 13:21:51 +00:00
.cvsignore auto-import changelog data from ftp-0.17-7.src.rpm 2004-09-09 04:53:56 +00:00
ftp.spec --- netkit-ftp-0.17/ftp/ftp.c.multiipv6 2006-08-02 15:03:26.000000000 +0200 2006-08-02 13:21:51 +00:00
Makefile Setup of module ftp 2004-09-09 04:53:31 +00:00
netkit-ftp-0.17-acct.patch auto-import changelog data from ftp-0.17-7.src.rpm 2004-09-09 04:53:56 +00:00
netkit-ftp-0.17-C-Frame121.patch Comments/hints for C-Frame 121. 2005-10-26 15:03:54 +00:00
netkit-ftp-0.17-data.patch ftp does not close socket descriptor (See #174599) 2005-12-02 14:51:35 +00:00
netkit-ftp-0.17-longint.patch signed overflow (printing '#' but not reading data from network) 2005-08-23 08:06:53 +00:00
netkit-ftp-0.17-longnames.patch --- netkit-ftp-0.17/ftp/cmds.c.longnames 2006-07-25 11:13:55.000000000 2006-07-26 12:56:27 +00:00
netkit-ftp-0.17-multihome.patch Support for multi-homed clients, see #171621 2006-01-12 10:39:59 +00:00
netkit-ftp-0.17-multiipv6.patch --- netkit-ftp-0.17/ftp/ftp.c.multiipv6 2006-08-02 15:03:26.000000000 +0200 2006-08-02 13:21:51 +00:00
netkit-ftp-0.17-pre20000412.pasv-security.patch auto-import changelog data from ftp-0.17-6.src.rpm 2004-09-09 04:53:33 +00:00
netkit-ftp-0.17-printf.patch - Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai) 2005-05-24 20:15:26 +00:00
netkit-ftp-0.17-runique_mget.patch [tw] - fixed mget with runique (#79367) 2004-12-07 14:06:14 +00:00
netkit-ftp-0.17-segv.patch auto-import changelog data from ftp-0.17-22.src.rpm 2004-09-09 04:56:28 +00:00
netkit-ftp-0.17-volatile.patch auto-import changelog data from ftp-0.17-22.src.rpm 2004-09-09 04:56:28 +00:00
netkit-ftp-0.17-vsftp165083.patch This is a placebo commit (can not build). 2005-08-30 15:24:02 +00:00
netkit-ftp-locale.patch - Call setlocale() so that readline works correctly (bug #142265). 2004-12-15 17:21:13 +00:00
netkit-ftp.usagi-ipv6.patch - Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai) 2005-05-24 20:15:26 +00:00
sources auto-import changelog data from ftp-0.17-7.src.rpm 2004-09-09 04:53:56 +00:00