Add patch.

This commit is contained in:
Marcela Mašláňová 2007-08-07 10:54:40 +00:00
parent 2cdfed0785
commit acc2825d52
2 changed files with 22 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Summary: The standard UNIX FTP (File Transfer Protocol) client
Name: ftp
Version: 0.17
Release: 40%{?dist}
Release: 41%{?dist}
License: BSD
Group: Applications/Internet
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
Patch16: netkit-ftp-0.17-nodebug.patch
Patch17: netkit-ftp-0.17-stamp.patch
Patch18: netkit-ftp-0.17-sigseg.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glibc-devel, readline-devel, ncurses-devel
@ -54,6 +55,7 @@ file transfers.
%patch15 -p1 -b .multiipv6
%patch16 -p1 -b .nodebug
%patch17 -p1 -b .stamp
%patch18 -p1 -b .sigseg
%build
sh configure --with-c-compiler=gcc --enable-ipv6
@ -87,6 +89,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man5/netrc.*
%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
- review again

View 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);