rpms/nc/devel nc-1.84-verbose-segfault.patch, NONE, 1.1 nc.spec, 1.44, 1.45

Jan Zeleny jzeleny at fedoraproject.org
Mon Jul 27 11:07:32 UTC 2009


Author: jzeleny

Update of /cvs/extras/rpms/nc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3823

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/devel/nc.spec,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -p -r1.44 -r1.45
--- nc.spec	25 Jul 2009 15:50:11 -0000	1.44
+++ nc.spec	27 Jul 2009 11:07:32 -0000	1.45
@@ -1,7 +1,7 @@
 Summary: Reads and writes data across network connections using TCP or UDP
 Name: nc
 Version: 1.84
-Release: 20%{?dist}
+Release: 21%{?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-21
+- fixed segfault when listening to socket and -v enabled (#513925)
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.84-20
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list