rpms/nc/F-11 nc-1.84-verbose-segfault.patch, NONE, 1.1 nc.spec, 1.43, 1.44

Jan Zeleny jzeleny at fedoraproject.org
Mon Jul 27 11:10:40 UTC 2009


Author: jzeleny

Update of /cvs/extras/rpms/nc/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5491

Modified Files:
	nc.spec 
Added Files:
	nc-1.84-verbose-segfault.patch 
Log Message:
fixed segfault when listening to socket and -v enabled (#513925)


nc-1.84-verbose-segfault.patch:
 netcat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE nc-1.84-verbose-segfault.patch ---
--- nc/netcat.c.orig	2009-07-27 10:21:34.000000000 +0200
+++ nc/netcat.c	2009-07-27 11:26:23.000000000 +0200
@@ -336,7 +336,7 @@
 				    &len);
 			}
 
-			if(vflag) {
+			if(vflag && family != AF_UNIX) {
 				/* Don't look up port if -n. */
 				if (nflag)
 					sv = NULL;


Index: nc.spec
===================================================================
RCS file: /cvs/extras/rpms/nc/F-11/nc.spec,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -p -r1.43 -r1.44
--- nc.spec	3 Apr 2009 14:42:00 -0000	1.43
+++ nc.spec	27 Jul 2009 11:10:39 -0000	1.44
@@ -1,7 +1,7 @@
 Summary: Reads and writes data across network connections using TCP or UDP
 Name: nc
 Version: 1.84
-Release: 19%{?dist}
+Release: 20%{?dist}
 URL:	 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/
 # source is CVS checkout
 Source0: nc-%{version}.tar.bz2
@@ -17,6 +17,7 @@ Patch8: nc-1.84-verb.patch
 Patch9: nc-1.84-man.patch
 Patch10: nc-1.84-gcc4.3.patch
 Patch11: nc-1.84-efficient_reads.patch
+Patch12: nc-1.84-verbose-segfault.patch
 
 License: GPL+
 Group: Applications/Internet
@@ -51,6 +52,7 @@ capabilities.
 %patch9 -p1 -b .man
 %patch10 -p1 -b .gcc
 %patch11 -p1 -b .reads
+%patch12 -p1 -b .verb-segfault
 
 %build
 gcc $RPM_OPT_FLAGS -Werror -fno-strict-aliasing `pkg-config --cflags --libs glib-2.0` netcat.c atomicio.c socks.c -o nc
@@ -72,6 +74,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %doc README scripts
 
 %changelog
+* Mon Jul 27 2009 Jan Zeleny <jzeleny at redhat.com> - 1.84-20
+- fixed segfault when listening to socket and -v enabled (#513925)
+
 * Fri Apr 03 2009 Jan Zeleny <jzeleny at redhat.com> - 1.84-19
 - updated network reading to be more efficient (#493129)
 




More information about the fedora-extras-commits mailing list