Add patch.
This commit is contained in:
parent
2cdfed0785
commit
acc2825d52
7
ftp.spec
7
ftp.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: The standard UNIX FTP (File Transfer Protocol) client
|
Summary: The standard UNIX FTP (File Transfer Protocol) client
|
||||||
Name: ftp
|
Name: ftp
|
||||||
Version: 0.17
|
Version: 0.17
|
||||||
Release: 40%{?dist}
|
Release: 41%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.gz
|
Source0: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-ftp-%{version}.tar.gz
|
||||||
@ -23,6 +23,7 @@ Patch14: netkit-ftp-0.17-longnames.patch
|
|||||||
Patch15: netkit-ftp-0.17-multiipv6.patch
|
Patch15: netkit-ftp-0.17-multiipv6.patch
|
||||||
Patch16: netkit-ftp-0.17-nodebug.patch
|
Patch16: netkit-ftp-0.17-nodebug.patch
|
||||||
Patch17: netkit-ftp-0.17-stamp.patch
|
Patch17: netkit-ftp-0.17-stamp.patch
|
||||||
|
Patch18: netkit-ftp-0.17-sigseg.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: glibc-devel, readline-devel, ncurses-devel
|
BuildRequires: glibc-devel, readline-devel, ncurses-devel
|
||||||
@ -54,6 +55,7 @@ file transfers.
|
|||||||
%patch15 -p1 -b .multiipv6
|
%patch15 -p1 -b .multiipv6
|
||||||
%patch16 -p1 -b .nodebug
|
%patch16 -p1 -b .nodebug
|
||||||
%patch17 -p1 -b .stamp
|
%patch17 -p1 -b .stamp
|
||||||
|
%patch18 -p1 -b .sigseg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sh configure --with-c-compiler=gcc --enable-ipv6
|
sh configure --with-c-compiler=gcc --enable-ipv6
|
||||||
@ -87,6 +89,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_mandir}/man5/netrc.*
|
%{_mandir}/man5/netrc.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 07 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-41
|
||||||
|
- #251074 add patch from Jan Kratochvil
|
||||||
|
|
||||||
* Wed Feb 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-40
|
* Wed Feb 15 2007 Marcela Maslanova <mmaslano@redhat.com> - 0.17-40
|
||||||
- review again
|
- review again
|
||||||
|
|
||||||
|
16
netkit-ftp-0.17-sigseg.patch
Normal file
16
netkit-ftp-0.17-sigseg.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
--- netkit-ftp-0.17-orig/ftp/ftp.c 2007-08-06 23:32:49.000000000 +0200
|
||||||
|
+++ netkit-ftp-0.17/ftp/ftp.c 2007-08-06 23:31:06.000000000 +0200
|
||||||
|
@@ -483,8 +483,10 @@ getreply(int expecteof)
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
lostpeer(0);
|
||||||
|
- fclose(cout);
|
||||||
|
- cout = NULL;
|
||||||
|
+ if (cout) {
|
||||||
|
+ fclose(cout);
|
||||||
|
+ cout = NULL;
|
||||||
|
+ }
|
||||||
|
if (verbose) {
|
||||||
|
printf("421 Service not available, remote server has closed connection\n");
|
||||||
|
(void) fflush(stdout);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user