rpms/nc/devel nc-1.82-reuseaddr.patch,NONE,1.1 nc.spec,1.18,1.19
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri Oct 21 10:10:40 UTC 2005
- Previous message (by thread): rpms/s390utils/devel s390-tools-1.5.0-automenu.patch, NONE, 1.1 s390-tools-1.5.0-fdasd-raid.patch, NONE, 1.1 s390-tools-1.5.0-fmtpercentage.patch, NONE, 1.1 s390-tools-1.5.0-rhconf.patch, NONE, 1.1 s390-tools-1.5.0-su.patch, NONE, 1.1 s390-tools-1.5.0-subdirs.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 s390utils.spec, 1.24, 1.25 sources, 1.12, 1.13 s390-tools-1.1.6-fmtpercentage.patch, 1.1, NONE s390-tools-1.2.1-rhconf.patch, 1.2, NONE s390-tools-1.3.1-automenu.patch, 1.4, NONE s390-tools-1.3.1-fdasd-raid.patch, 1.1, NONE s390-tools-1.3.2-su.patch, 1.1, NONE s390-tools-1.3.2-subdirs.patch, 1.1, NONE
- Next message (by thread): rpms/s390utils/devel s390utils.spec,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rvokal
Update of /cvs/dist/rpms/nc/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1571
Modified Files:
nc.spec
Added Files:
nc-1.82-reuseaddr.patch
Log Message:
use SO_REUSEADDR (#171315)
nc-1.82-reuseaddr.patch:
netcat.c | 4 ++++
1 files changed, 4 insertions(+)
--- NEW FILE nc-1.82-reuseaddr.patch ---
--- nc/netcat.c.reuseaddr 2005-10-21 11:58:56.000000000 +0200
+++ nc/netcat.c 2005-10-21 11:59:30.000000000 +0200
@@ -548,6 +548,10 @@ local_listen(char *host, char *port, str
if ((s = socket(res0->ai_family, res0->ai_socktype,
res0->ai_protocol)) < 0)
continue;
+
+ ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &x, sizeof(x));
+ if (ret == -1)
+ err(1, NULL);
#ifdef SO_REUSEPORT
ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof(x));
if (ret == -1)
Index: nc.spec
===================================================================
RCS file: /cvs/dist/rpms/nc/devel/nc.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- nc.spec 27 Sep 2005 11:36:44 -0000 1.18
+++ nc.spec 21 Oct 2005 10:10:36 -0000 1.19
@@ -1,11 +1,12 @@
Summary: Reads and writes data across network connections using TCP or UDP.
Name: nc
Version: 1.82
-Release: 1
+Release: 2
URL: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/
Source0: nc-%{version}.tar.bz2
Patch0: nc-glib.patch
Patch1: nc-1.78-pollhup.patch
+Patch2: nc-1.82-reuseaddr.patch
License: GPL
Group: Applications/Internet
BuildRoot: %{_tmppath}/%{name}-root
@@ -29,6 +30,7 @@
%setup -q -n nc
%patch0 -p1 -b .glib
%patch1 -p1 -b .pollhup
+%patch2 -p1 -b .reuseaddr
%build
gcc $RPM_OPT_FLAGS `pkg-config --cflags --libs glib-2.0` netcat.c atomicio.c socks.c -o nc
@@ -50,6 +52,9 @@
%doc README scripts
%changelog
+* Fri Oct 21 2005 Radek Vokal <rvokal at redhat.com> 1.82-2
+- use SO_REUSEADDR (#171315)
+
* Tue Sep 27 2005 Tomas Mraz <tmraz at redhat.com> 1.82-1
- update from OpenBSD upstream CVS
- fix pollhup patch so it reads everything before shutdown
- Previous message (by thread): rpms/s390utils/devel s390-tools-1.5.0-automenu.patch, NONE, 1.1 s390-tools-1.5.0-fdasd-raid.patch, NONE, 1.1 s390-tools-1.5.0-fmtpercentage.patch, NONE, 1.1 s390-tools-1.5.0-rhconf.patch, NONE, 1.1 s390-tools-1.5.0-su.patch, NONE, 1.1 s390-tools-1.5.0-subdirs.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 s390utils.spec, 1.24, 1.25 sources, 1.12, 1.13 s390-tools-1.1.6-fmtpercentage.patch, 1.1, NONE s390-tools-1.2.1-rhconf.patch, 1.2, NONE s390-tools-1.3.1-automenu.patch, 1.4, NONE s390-tools-1.3.1-fdasd-raid.patch, 1.1, NONE s390-tools-1.3.2-su.patch, 1.1, NONE s390-tools-1.3.2-subdirs.patch, 1.1, NONE
- Next message (by thread): rpms/s390utils/devel s390utils.spec,1.25,1.26
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list