b46df69741
+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 */
233 lines
6.8 KiB
RPMSpec
233 lines
6.8 KiB
RPMSpec
Summary: The standard UNIX FTP (File Transfer Protocol) client.
|
|
Name: ftp
|
|
Version: 0.17
|
|
Release: 32.1.2.2
|
|
License: BSD
|
|
Group: Applications/Internet
|
|
Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/netkit-ftp-%{version}.tar.bz2
|
|
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
|
|
Patch11: netkit-ftp-0.17-C-Frame121.patch
|
|
Patch12: netkit-ftp-0.17-data.patch
|
|
Patch13: netkit-ftp-0.17-multihome.patch
|
|
Patch14: netkit-ftp-0.17-longnames.patch
|
|
|
|
BuildRoot: /var/tmp/%{name}-root
|
|
BuildRequires: gcc, glibc-devel, readline-devel, ncurses-devel, perl
|
|
|
|
%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
|
|
%patch11 -p1 -b .C-Frame121
|
|
%patch12 -p1 -b .data
|
|
%patch13 -p1 -b .multihome
|
|
%patch14 -p1 -b .longnames
|
|
|
|
%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,^BINDIR=.*$,BINDIR=%{_bindir},;
|
|
s,^MANDIR=.*$,MANDIR=%{_mandir},;
|
|
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
|
|
' MCONFIG
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
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
|
|
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ftp
|
|
%{_bindir}/pftp
|
|
%{_mandir}/man1/ftp.*
|
|
%{_mandir}/man1/pftp.*
|
|
%{_mandir}/man5/netrc.*
|
|
|
|
%changelog
|
|
* Thu Jul 25 2006 Marcela Maslanova <mmaslano@redhat.com> - 0.17-32.1.2.2
|
|
- fix (#196103) patch for long filenames
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2.1
|
|
- rebuild
|
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.17-32.1.2
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* 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.
|
|
|
|
* Tue Aug 30 2005 Petr Raszyk <praszyk@redhat.com> - 0.17-29
|
|
- 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
|
|
|
|
* Fri Mar 04 2005 Jiri Ryska <jryska@redhat.com>
|
|
- rebuilt
|
|
|
|
* 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
|