From acc2825d5272ab5632f8b75fa1f5fd8dcf93a687 Mon Sep 17 00:00:00 2001 From: Marcela Mašláňová Date: Aug 07 2007 10:54:40 +0000 Subject: Add patch. --- diff --git a/ftp.spec b/ftp.spec index c4f5710..0284f10 100644 --- a/ftp.spec +++ b/ftp.spec @@ -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 - 0.17-41 +- #251074 add patch from Jan Kratochvil + * Wed Feb 15 2007 Marcela Maslanova - 0.17-40 - review again diff --git a/netkit-ftp-0.17-sigseg.patch b/netkit-ftp-0.17-sigseg.patch new file mode 100644 index 0000000..0972eb1 --- /dev/null +++ b/netkit-ftp-0.17-sigseg.patch @@ -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); +