Commit Graph

76 Commits

Author SHA1 Message Date
Dennis Gilmore
d14d2ba44c - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 08:01:28 -05:00
Dennis Gilmore
5f7b42238b - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 07:05:32 -05:00
Dennis Gilmore
e025bd73fb - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 16:05:08 -06:00
Jan Synacek
5f38f714ec Fix buffer overflow in token parsing
Resolves: #871296
2012-10-30 08:37:31 +01:00
Jan Synacek
445d297f37 Fix linelen patch
Resolves: #871290
2012-10-30 08:12:52 +01:00
Jan Synacek
c75973b948 Fix: FTP client does not expand home directory correctly after sudo or su
Resolves: #861113
2012-10-03 09:18:37 +02:00
Jan Synacek
578bc30861 Add listening timeout 2012-09-25 12:38:53 +02:00
Jan Synacek
9dae303d10 Plug leaks in "put", "send", "append" 2012-09-25 12:37:30 +02:00
Jan Synacek
e4ce6c5b89 Add active mode option 2012-08-28 12:25:50 +02:00
Jan Synacek
81c6ecabf7 Prettify spec some more and remove trailing space 2012-08-03 12:06:07 +02:00
Jan Synacek
a93372c814 Extend the input line buffer and the argument storage buffer 2012-08-03 12:03:43 +02:00
Jan Synacek
071db6a8d9 Remove nested include (fix compilation in rawhide) 2012-07-20 08:12:18 +02:00
Jan Synacek
c2b464b88e Make spec fedora-review-friendly 2012-07-19 10:44:12 +02:00
Jan Synacek
96b6eb6c2e Fixed Source0 and URL 2012-07-19 10:26:55 +02:00
Dennis Gilmore
d0e0d52059 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 22:27:37 -05:00
Dennis Gilmore
4722404603 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 20:48:06 -06:00
Jiri Skala
ac032896fc fixes #737016 - ftp: off-by-one in account command parsing 2011-09-09 15:45:37 +02:00
Jiri Skala
560d4f72f9 fixes #673850 - ftp(1) manpage fixes 2011-03-29 09:41:34 +02:00
Dennis Gilmore
268ccf822e - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 16:11:39 -06:00
Fedora Release Engineering
b7c393b54d dist-git conversion 2010-07-28 14:52:35 +00:00
Bill Nottingham
6b6421d366 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:16:30 +00:00
Jesse Keating
1fbf4f571c - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-24 23:16:42 +00:00
Jesse Keating
6d2db99e7e - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-24 18:43:55 +00:00
Jiri Skala
09f5afd60e - Resolves: #473491 unchecked malloc 2008-12-01 12:35:22 +00:00
Martin Nagy
d3ca284819 - fix mget when using case
- Resolves: #442712
2008-04-23 14:41:47 +00:00
Martin Nagy
784a3d3931 - Use sysconf to get ARG_MAX instead of a macro (#440782) 2008-04-07 10:52:13 +00:00
Jesse Keating
6c306e5767 - Autorebuild for GCC 4.3 2008-02-19 14:26:52 +00:00
Marcela Mašláňová
9ff9fdd15e - changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
- Resolves: rhbz#430457
2008-01-28 11:07:04 +00:00
Marcela Mašláňová
59d2027bf0 Forgot add the patch. 2007-11-15 13:07:10 +00:00
Marcela Mašláňová
f648401a40 Using fprintf instead of printf. 2007-11-15 12:52:22 +00:00
Marcela Mašláňová
5c72344e72 feature: for cmd size is switching to TYPE_I automatized bug: ftp leaks
socket fds when it fails to open a file (#315241)
2007-10-22 08:11:17 +00:00
Bill Nottingham
ba70335a13 makefile update to properly grab makefile.common 2007-10-15 18:46:18 +00:00
Marcela Mašláňová
9e26dc9cbc Check license tag. 2007-08-24 07:10:45 +00:00
Marcela Mašláňová
acc2825d52 Add patch. 2007-08-07 10:54:40 +00:00
Marcela Mašláňová
2cdfed0785 Changes in spec for review. 2007-02-15 15:57:24 +00:00
Marcela Mašláňová
48803b3dd4 Change for review 2007-02-15 15:15:53 +00:00
Marcela Mašláňová
f4fdb6d5a3 Change spec. 2007-02-14 11:07:07 +00:00
Marcela Mašláňová
2c0ccf0871 Changes for review. 2007-02-14 10:26:50 +00:00
Marcela Mašláňová
c780124ca6 Change for review. 2007-02-07 10:37:08 +00:00
Marcela Mašláňová
4ed04aeab3 Change in spec file for review. 2007-02-06 12:52:18 +00:00
Marcela Mašláňová
4232a3d5c7 Changes in spec file. 2007-02-05 16:02:29 +00:00
Marcela Mašláňová
02fb0ab9c3 Removed no debug. 2007-01-30 13:25:18 +00:00
Marcela Mašláňová
012e949d58 Removed nodebug. 2007-01-30 13:24:34 +00:00
Marcela Mašláňová
cd9534f618 Change spec, add patch. 2007-01-30 13:02:14 +00:00
Marcela Mašláňová
beceefff69 Change spec file. 2006-09-13 06:37:40 +00:00
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
Marcela Mašláňová
b46df69741 --- netkit-ftp-0.17/ftp/cmds.c.longnames 2006-07-25 11:13:55.000000000
+0200
netkit-ftp-0.17/ftp/cmds.c 2006-07-24 17:52:10.000000000 +0200 @@ -1057,10
    +1057,9 @@ status(void) {
int i;
-
- if (connected)
if (connected) printf("Connected to %s.\n", hostname);
- else
else printf("Not connected.\n"); if (!proxy) { pswitch(1); @@ -1081,7
    +1080,7 @@ onoff(runique)); printf("Case: %s; CR stripping:
    %s\n",onoff(mcase),onoff(crflag)); if (ntflag) {
- printf("Ntrans: (in) %s (out) %s\n", ntin,ntout);
printf("Ntrans: (in) %s (out) %s\n",ntin,ntout); }
else { printf("Ntrans: off\n"); @@ -1948,14 +1947,14 @@ }
ntflag++; code = ntflag;
- (void) strncpy(ntin, argv[1], 16);
- ntin[16] = '\0';
(void) strncpy(ntin, argv[1], NTRANS_MAX);
ntin[NTRANS_MAX] = '\0'; if (argc == 2) { ntout[0] = '\0'; return; }
- (void) strncpy(ntout, argv[2], 16);
- ntout[16] = '\0';
(void) strncpy(ntout, argv[2], NTRANS_MAX);
ntout[NTRANS_MAX] = '\0'; }
static char * @@ -1965,10 +1964,10 @@ char *cp1, *cp2 = new; register int
    i, ostop, found;
- for (ostop = 0; *(ntout + ostop) && ostop < 16; ostop++);
for (ostop = 0; *(ntout + ostop) && ostop < NTRANS_MAX; ostop++); for (cp1
    = name; *cp1; cp1++) { found = 0;
- for (i = 0; *(ntin + i) && i < 16; i++) {
for (i = 0; *(ntin + i) && i < NTRANS_MAX; i++) { if (*cp1 == *(ntin + i))
    { found++; if (i < ostop) {
--- netkit-ftp-0.17/ftp/ftp.c.longnames 2006-07-25 11:13:56.000000000 +0200
netkit-ftp-0.17/ftp/ftp.c 2006-07-24 17:46:14.000000000 +0200 @@ -1656,8
    +1656,8 @@ int runqe; int mcse; int ntflg;
- char nti[17];
- char nto[17];
char nti[NTRANS_MAX+1];
char nto[NTRANS_MAX+1]; int mapflg; char mi[MAXPATHLEN]; char
    mo[MAXPATHLEN]; @@ -1712,11 +1712,11 @@ mcase = op->mcse; ip->ntflg =
    ntflag; ntflag = op->ntflg;
- (void) strncpy(ip->nti, ntin, 16);
- (ip->nti)[16] = '\0'; /* shouldn't use strlen */
(void) strncpy(ip->nti, ntin, NTRANS_MAX);
(ip->nti)[NTRANS_MAX] = '\0'; /* shouldn't use strlen */ (void)
    strcpy(ntin, op->nti);
- (void) strncpy(ip->nto, ntout, 16);
- (ip->nto)[16] = '\0';
(void) strncpy(ip->nto, ntout, NTRANS_MAX);
(ip->nto)[NTRANS_MAX] = '\0'; (void) strcpy(ntout, op->nto); ip->mapflg =
    mapflag; mapflag = op->mapflg;
--- netkit-ftp-0.17/ftp/ftp_var.h.longnames 2006-07-25 11:13:56.000000000
    +0200
netkit-ftp-0.17/ftp/ftp_var.h 2006-07-24 15:49:37.000000000 +0200 @@ -42,6
    +42,7 @@
#include <setjmp.h> #include <sys/param.h>
#define NTRANS_MAX 64
/*
Tick counter step size. @@ -82,8 +83,8 @@ Extern char pasv[64]; /* passive
    port for proxy data connection */ Extern int passivemode; /* passive
    mode enabled */ Extern char *altarg; /* argv[1] with no shell-like
    preprocessing */
-Extern char ntin[17]; /* input translation table */
-Extern char ntout[17]; /* output translation table */
Extern char ntin[NTRANS_MAX+1]; /* input translation table */
Extern char ntout[NTRANS_MAX+1]; /* output translation table */ Extern char
    mapin[MAXPATHLEN]; /* input map template */ Extern char
    mapout[MAXPATHLEN]; /* output map template */ Extern char typename[32];
    /* name of file transfer type */
2006-07-26 12:56:27 +00:00
Jesse Keating
6fb4ee2955 bumped for rebuild 2006-07-12 05:52:25 +00:00
Jesse Keating
749c96f81f bump for bug in double-long on ppc(64) 2006-02-11 02:46:57 +00:00
Jesse Keating
1e608d30de bump for new gcc/glibc 2006-02-07 11:42:24 +00:00