Commit Graph

  • 012e949d58 Removed nodebug. Marcela Mašláňová 2007-01-30 13:24:34 +0000
  • cd9534f618 Change spec, add patch. Marcela Mašláňová 2007-01-30 13:02:14 +0000
  • beceefff69 Change spec file. Marcela Mašláňová 2006-09-13 06:37:40 +0000
  • 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 Marcela Mašláňová 2006-08-02 13:21:51 +0000
  • 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 */ Marcela Mašláňová 2006-07-26 12:56:27 +0000
  • 6fb4ee2955 bumped for rebuild Jesse Keating 2006-07-12 05:52:25 +0000
  • 749c96f81f bump for bug in double-long on ppc(64) Jesse Keating 2006-02-11 02:46:57 +0000
  • 1e608d30de bump for new gcc/glibc Jesse Keating 2006-02-07 11:42:24 +0000
  • 653c60b2f5 Support for multi-homed clients, see #171621 praszyk 2006-01-12 10:39:59 +0000
  • 38c18fcd23 gcc update bump Jesse Keating 2005-12-09 22:40:30 +0000
  • 4ca5a3037c ftp does not close socket descriptor (See #174599) praszyk 2005-12-02 14:51:35 +0000
  • 2f28aa5eb3 Comments/hints for C-Frame 121. praszyk 2005-10-26 15:03:54 +0000
  • 7a3d5f4c08 Placebo, can not build. praszyk 2005-08-30 15:29:34 +0000
  • 4c3f2a582a This is a placebo commit (can not build). praszyk 2005-08-30 15:24:02 +0000
  • 9ceeb4f2e5 Relativ-path removed from the patch file praszyk 2005-08-30 09:30:43 +0000
  • 71a717b5c2 This 'hack' will avoid a bug in ftp-server (see #165083). praszyk 2005-08-30 09:13:43 +0000
  • 08c5489ce8 signed overflow (printing '#' but not reading data from network) praszyk 2005-08-23 08:06:53 +0000
  • 31a01a307f - Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai) - Fix format string mismatch Miloslav Trmac 2005-05-24 20:15:26 +0000
  • c38e62c33e rebuilt jryska 2005-03-04 18:27:06 +0000
  • 9b5c10012a - Rebuilt for new readline. Tim Waugh 2005-01-12 15:07:34 +0000
  • 77f41c212d - Call setlocale() so that readline works correctly (bug #142265). Tim Waugh 2004-12-15 17:21:13 +0000
  • 0c3ef1e881 [tw] - fixed mget with runique (#79367) Thomas Woerner 2004-12-07 14:06:14 +0000
  • 7ef7941cc3 auto-import changelog data from ftp-0.17-22.src.rpm Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> - rebuilt Mon Jun 14 2004 Alan Cox <alan@redhat.com> - Re-arranged some totally bogus old bezerkly code that could segfault ftp on connection loss. (BZ #122295) cvsdist 2004-09-09 04:56:28 +0000
  • 342580c983 auto-import changelog data from ftp-0.17-19.src.rpm Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> - rebuilt cvsdist 2004-09-09 04:56:20 +0000
  • a9208281a2 auto-import changelog data from ftp-0.17-18.src.rpm Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt cvsdist 2004-09-09 04:55:14 +0000
  • 5c0f703e8d auto-import changelog data from ftp-0.17-17.src.rpm Wed Jan 22 2003 Tim Powers <timp@redhat.com> - rebuilt Fri Dec 13 2002 Elliot Lee <sopwith@redhat.com> - Rebuild cvsdist 2004-09-09 04:54:59 +0000
  • c1493bd8b7 auto-import changelog data from ftp-0.17-15.src.rpm Fri Jun 21 2002 Tim Powers <timp@redhat.com> - automated rebuild cvsdist 2004-09-09 04:54:54 +0000
  • 99894b9ff4 auto-import changelog data from ftp-0.17-14.src.rpm Thu May 23 2002 Tim Powers <timp@redhat.com> - automated rebuild cvsdist 2004-09-09 04:54:51 +0000
  • a83902c1a4 auto-import changelog data from ftp-0.17-13.src.rpm Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13 - Recompile with support for files > 2 GB cvsdist 2004-09-09 04:54:45 +0000
  • cf2800f818 auto-import changelog data from ftp-0.17-12.src.rpm Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12 - Add some Build dependencies (#45007) cvsdist 2004-09-09 04:54:23 +0000
  • a197844f73 auto-import changelog data from ftp-0.17-11.src.rpm Fri May 18 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-11 - Actually apply Patch #3 Fri May 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-10 - Rebuild with new readline Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Add IPv6 patch (RFE #35642) Wed Apr 04 2001 Jakub Jelinek <jakub@redhat.com> - don't let configure to guess compiler, it can pick up egcs cvsdist 2004-09-09 04:54:20 +0000
  • 7fec8e82d9 auto-import changelog data from ftp-0.17-7.src.rpm Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Update to 0.17 final - Fix up ACCT support in netrc (Bug #17353) cvsdist 2004-09-09 04:53:56 +0000
  • 2f4f4a3395 auto-import changelog data from ftp-0.17-6.src.rpm Wed Aug 16 2000 Philipp Knirsch <pknirsch@redhat.com> - Switched the default transfer protocol from PORT to PASV as proposed on bugzilla (#16134) - Fixed a small compiler warning in ftp.c line 886 Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com> - add netrc man page (#7443). - fix possible buffer overflows in ftp client. Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17-pre20000412. Wed Apr 05 2000 Bernhard Rosenkraenzer <bero@redhat.com> - rebuild with current libreadline Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 0.17 Fri Feb 04 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - the ftp client does not require inetd Wed Dec 22 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 30 1999 Jeff Johnson <jbj@redhat.com> - update to 0.15. - enable readline support (#3796). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com> - build root Mon Apr 27 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr cvsdist 2004-09-09 04:53:33 +0000
  • 11f752452a Setup of module ftp cvsdist 2004-09-09 04:53:31 +0000