ftp/ftp.spec

439 lines
15 KiB
RPMSpec
Raw Normal View History

2007-02-05 16:02:29 +00:00
Summary: The standard UNIX FTP (File Transfer Protocol) client
Name: ftp
Version: 0.17
Release: 84%{?dist}
2007-08-24 07:10:45 +00:00
License: BSD with advertising
2012-07-19 08:26:55 +00:00
Source0: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.gz
URL: ftp://ftp.linux.org.uk/pub/linux/Networking/netkit
Patch1: netkit-ftp-0.17-pre20000412.pasv-security.patch
Patch2: netkit-ftp-0.17-acct.patch
Patch3: netkit-ftp.usagi-ipv6.patch
Patch4: netkit-ftp-0.17-segv.patch
Patch5: netkit-ftp-0.17-volatile.patch
Patch6: netkit-ftp-0.17-runique_mget.patch
Patch7: netkit-ftp-locale.patch
Patch8: netkit-ftp-0.17-printf.patch
Patch9: netkit-ftp-0.17-longint.patch
Patch10: netkit-ftp-0.17-vsftp165083.patch
2005-10-26 15:03:54 +00:00
Patch11: netkit-ftp-0.17-C-Frame121.patch
Patch12: netkit-ftp-0.17-data.patch
Patch13: netkit-ftp-0.17-multihome.patch
--- 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
Patch14: netkit-ftp-0.17-longnames.patch
--- 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
Patch15: netkit-ftp-0.17-multiipv6.patch
2007-01-30 13:02:14 +00:00
Patch16: netkit-ftp-0.17-nodebug.patch
2007-02-07 10:37:08 +00:00
Patch17: netkit-ftp-0.17-stamp.patch
2007-08-07 10:54:40 +00:00
Patch18: netkit-ftp-0.17-sigseg.patch
Patch19: netkit-ftp-0.17-size.patch
Patch20: netkit-ftp-0.17-fdleak.patch
2007-11-15 12:52:22 +00:00
Patch21: netkit-ftp-0.17-fprintf.patch
Patch22: netkit-ftp-0.17-bitrate.patch
Patch23: netkit-ftp-0.17-arg_max.patch
Patch24: netkit-ftp-0.17-case.patch
2008-12-01 12:35:22 +00:00
Patch25: netkit-ftp-0.17-chkmalloc.patch
2011-03-29 07:41:34 +00:00
Patch26: netkit-ftp-0.17-man.patch
Patch27: netkit-ftp-0.17-acct_ovl.patch
Patch28: netkit-ftp-0.17-remove-nested-include.patch
Patch29: netkit-ftp-0.17-linelen.patch
2012-08-28 10:25:50 +00:00
Patch30: netkit-ftp-0.17-active-mode-option.patch
2012-09-25 10:37:30 +00:00
Patch31: netkit-ftp-0.17-commands-leaks.patch
2012-09-25 10:38:53 +00:00
Patch32: netkit-ftp-0.17-lsn-timeout.patch
Patch33: netkit-ftp-0.17-getlogin.patch
Patch34: netkit-ftp-0.17-token.patch
Patch35: netkit-ftp-0.17-linelen-segfault.patch
--- 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
2007-02-05 16:02:29 +00:00
BuildRequires: glibc-devel, readline-devel, ncurses-devel
BuildRequires: perl-interpreter, gcc
%description
The ftp package provides the standard UNIX command-line FTP (File
Transfer Protocol) client. FTP is a widely used protocol for
transferring files over the Internet and for archiving files.
If your system is on a network, you should install ftp in order to do
file transfers.
%prep
%setup -q -n netkit-ftp-%{version}
%patch1 -p1
%patch2 -p1 -b .acct
%patch3 -p1 -b .ipv6
%patch4 -p1 -b .segv
%patch5 -p1 -b .volatile
%patch6 -p1 -b .runique_mget
%patch7 -p1 -b .locale
%patch8 -p1 -b .printf
%patch9 -p1 -b .longint
%patch10 -p1 -b .vsftp165083
2005-10-26 15:03:54 +00:00
%patch11 -p1 -b .C-Frame121
%patch12 -p1 -b .data
%patch13 -p1 -b .multihome
--- 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
%patch14 -p1 -b .patch
%patch15 -p1 -b .multiipv6
2007-01-30 13:02:14 +00:00
%patch16 -p1 -b .nodebug
2007-02-07 10:37:08 +00:00
%patch17 -p1 -b .stamp
2007-08-07 10:54:40 +00:00
%patch18 -p1 -b .sigseg
%patch19 -p1 -b .size
%patch20 -p1 -b .fdleak
2007-11-15 12:52:22 +00:00
%patch21 -p1 -b .fprintf
%patch22 -p1 -b .bitrate
%patch23 -p1 -b .arg_max
%patch24 -p1 -b .case
2008-12-01 12:35:22 +00:00
%patch25 -p1 -b .chkmalloc
2011-03-29 07:41:34 +00:00
%patch26 -p1 -b .man
%patch27 -p1 -b .acct_ovl
%patch28 -p1
%patch29 -p1 -b .linelen
2012-08-28 10:25:50 +00:00
%patch30 -p1 -b .activemode
2012-09-25 10:37:30 +00:00
%patch31 -p1 -b .cmds-leaks
2012-09-25 10:38:53 +00:00
%patch32 -p1 -b .lsn-timeout
%patch33 -p1 -b .getlogin
%patch34 -p1 -b .token
%patch35 -p1 -b .linelen-segfault
%build
sh configure --with-c-compiler=gcc --enable-ipv6
perl -pi -e '
s,^CC=.*$,CC=cc,;
s,-O2,\$(RPM_OPT_FLAGS) -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64,;
s,^LDFLAGS=.*$,LDFLAGS=\$(RPM_LD_FLAGS),;
s,^BINDIR=.*$,BINDIR=%{_bindir},;
s,^MANDIR=.*$,MANDIR=%{_mandir},;
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
' MCONFIG
make %{?_smp_mflags}
%install
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
make INSTALLROOT=${RPM_BUILD_ROOT} install
%files
%{_bindir}/ftp
%{_bindir}/pftp
%{_mandir}/man1/ftp.*
%{_mandir}/man1/pftp.*
%{_mandir}/man5/netrc.*
%changelog
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-02-17 08:30:50 +00:00
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.17-81
- Rebuild for readline 8.0
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Dec 18 2018 Michal Ruprich <mruprich@redhat.com> - 0.17-79
- Resolves: #1624949 - netkit ftp client buffer overflow in makeargv()
* Mon Jul 23 2018 Michal Ruprich <mruprich@redhat.com> - 0.17-78
- Resolves: #1604015 - ftp: FTBFS in Fedora rawhide
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Mar 14 2018 Michal Ruprich <mruprich@redhat.com> - 0.17-76
- use distribution LDFLAGS during build (#1548427) - fix by jsynacek
- fixed bogus dates in changelog
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.17-71
- Rebuild for readline 7.x
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.17-68
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-63
- Fix buffer overflow in token parsing
- Resolves: #871296
2012-10-30 07:12:52 +00:00
* Tue Oct 30 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-62
- Fix linelen patch
- Resolves: #871290
* Wed Oct 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-61
- Fix: FTP client does not expand home directory correctly after sudo or su
- Resolves: #861113
2012-09-25 10:37:30 +00:00
* Tue Sep 25 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-60
- Plug leaks in "put", "send", "append"
2012-09-25 10:38:53 +00:00
- Add listening timeout
2012-09-25 10:37:30 +00:00
2012-08-28 10:25:50 +00:00
* Tue Aug 28 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-59
- Add active mode option
* Fri Aug 03 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-58
- Extend the input line buffer and the argument storage buffer
- Prettify spec some more and remove trailing space
* Fri Jul 20 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-57
- Remove nested include (fix compilation in rawhide)
2012-07-19 08:26:55 +00:00
* Thu Jul 19 2012 Jan Synáček <jsynacek@redhat.com> - 0.17-56
- Fixed Source0 and URL
2012-07-19 08:44:12 +00:00
- Make spec fedora-review-friendly
2012-07-19 08:26:55 +00:00
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri Sep 09 2011 Jiri Skala <jskala@redhat.com> - 0.17-54
- fixes #737016 - ftp: off-by-one in account command parsing
2011-03-29 07:41:34 +00:00
* Tue Mar 29 2011 Jiri Skala <jskala@redhat.com> - 0.17-53
- fixes #673850 - ftp(1) manpage fixes
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-01 12:35:22 +00:00
* Mon Dec 01 2008 Jiri Skala <jskala@redhat.com> - 0.17-49
- Resolves: #473491 unchecked malloc
* Wed Apr 23 2008 Martin Nagy <mnagy@redhat.com> - 0.17-48
- fix mget when using case
- Resolves: #442712
* Mon Apr 07 2008 Martin Nagy <mnagy@redhat.com> - 0.17-47
- Use sysconf to get ARG_MAX instead of a macro (#440782)
2008-02-19 14:26:52 +00:00
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.17-46
- Autorebuild for GCC 4.3
* Mon Jan 28 2008 Marcela Maslanova <mmaslano@redhat.com> - 0.17-45
- changed bitrate from 1e+03 KBytes/sec to 1000 kBytes/sec
- Resolves: rhbz#430457
2007-11-15 12:52:22 +00:00
* Thu Nov 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-44
- using fprintf instead of printf
* Mon Oct 22 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-43
- feature: for cmd size is switching to TYPE_I automatized
- bug: ftp leaks socket fds when it fails to open a file (#315241)
- rhbz#306191
2007-08-24 07:10:45 +00:00
* Fri Aug 24 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-42
- rebuilt (for mass rebuild)
- license tag checked
2007-08-07 10:54:40 +00:00
* Tue Aug 07 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-41
- #251074 add patch from Jan Kratochvil
* Thu Feb 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-40
2007-02-15 15:15:53 +00:00
- review again
2007-02-14 11:07:07 +00:00
* Wed Feb 14 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-39
- review again
* Wed Feb 7 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-38
2007-02-06 12:52:18 +00:00
- add gpl
2007-02-05 16:02:29 +00:00
- spec fix
- rhbz#225774
2007-01-30 13:25:18 +00:00
* Tue Jan 30 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-35
2007-01-30 13:02:14 +00:00
- nodebug package
2006-09-13 06:37:40 +00:00
* Wed Sep 13 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-33
- rebuilt
--- 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
* Wed Aug 2 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.4
- fix (#199145) patch for IPv6 multihome
* Tue Jul 25 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.3
--- 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
- fix (#196103) patch for long filenames
2006-07-12 05:52:25 +00:00
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2.1
- rebuild
2006-02-11 02:46:57 +00:00
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2
- bump again for double-long bug on ppc(64)
2006-02-07 11:42:24 +00:00
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.1
- rebuilt for new gcc4.1 snapshot and glibc changes
* Thu Jan 12 2006 Petr Raszyk <praszyk@redhat.com> - 0.17-32
- support for multi-homed clients
See #171621, netkit-ftp-0.17-multihome.patch
2005-12-09 22:40:30 +00:00
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Fri Dec 2 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-31
- ftp does not close socket descriptor (if the remote file
does not exist).
See #174599, netkit-ftp-0.17-data.patch
2005-10-26 15:03:54 +00:00
* Wed Oct 26 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-30
- The patch netkit-ftp-0.17-C-Frame121.patch adds some
comments/hints for C-Frame 121. It can be removed any time.
2005-08-30 15:29:34 +00:00
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-29
2005-10-26 15:03:54 +00:00
- rebuild
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-28
- This 'hack' will avoid a bug in ftp-server
( < vsftpd-2.0.1-5 ). See #165083 (server prints the
'150 FILE:...' line twice).
This patch can be (later ?) removed.
* Mon Aug 22 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-27
- overflow using 'hash mode' (printing '#' but
not reading data from network - #79367)
* Tue May 24 2005 Miloslav Trmac <mitr@redhat.com> - 0.17-26
- Fix passive mode with SELinux (#158234, patch by Nalin Dahyabhai)
- Fix format string mismatch
2005-03-04 18:27:06 +00:00
* Fri Mar 04 2005 Jiri Ryska <jryska@redhat.com>
- rebuilt
2005-01-12 15:07:34 +00:00
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 0.17-24
- Rebuilt for new readline.
* Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
- Call setlocale() so that readline works correctly (bug #142265).
* Tue Dec 7 2004 Thomas Woerner <twoerner@redhat.com> 0.17-23
- fixed mget with runique (#79367)
* 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)
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Fri Dec 13 2002 Elliot Lee <sopwith@redhat.com>
- Rebuild
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Fri Apr 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-13
- Recompile with support for files > 2 GB
* Mon Jun 25 2001 Bernhard Rosenkraenzer <bero@redhat.com> 0.17-12
- Add some Build dependencies (#45007)
* 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 4 2001 Jakub Jelinek <jakub@redhat.com>
- don't let configure to guess compiler, it can pick up egcs
* Sun Jan 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Update to 0.17 final
- Fix up ACCT support in netrc (Bug #17353)
* 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 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- rebuild with current libreadline
* Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 0.17
* Fri Feb 4 2000 Bill Nottingham <notting@redhat.com>
- handle compressed man pages
* Tue Jan 4 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