Use IP_FREEBIND socket option when binding listening sockets (bug #970809).
Resolves: rhbz#970809
This commit is contained in:
parent
f67efaa869
commit
f75ce252c6
14
cups-freebind.patch
Normal file
14
cups-freebind.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -up cups-1.7b1/scheduler/listen.c.freebind cups-1.7b1/scheduler/listen.c
|
||||||
|
--- cups-1.7b1/scheduler/listen.c.freebind 2013-06-20 11:48:17.427352639 +0100
|
||||||
|
+++ cups-1.7b1/scheduler/listen.c 2013-06-20 11:51:15.023288361 +0100
|
||||||
|
@@ -198,6 +198,10 @@ cupsdStartListening(void)
|
||||||
|
setsockopt(lis->fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val));
|
||||||
|
#endif /* __sun */
|
||||||
|
|
||||||
|
+#ifdef __linux
|
||||||
|
+ setsockopt(lis->fd, IPPROTO_IP, IP_FREEBIND, &val, sizeof(val));
|
||||||
|
+#endif /* __linux */
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* Bind to the port we found...
|
||||||
|
*/
|
@ -14,7 +14,7 @@ Summary: CUPS printing system
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.7
|
Version: 1.7
|
||||||
Release: 0.6.%{prever}%{?dist}
|
Release: 0.7.%{prever}%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
@ -62,6 +62,7 @@ Patch28: cups-17b1-va_list.patch
|
|||||||
Patch29: cups-enum-all.patch
|
Patch29: cups-enum-all.patch
|
||||||
Patch30: cups-stringpool-setprinterattr.patch
|
Patch30: cups-stringpool-setprinterattr.patch
|
||||||
Patch31: cups-dymo-deviceid.patch
|
Patch31: cups-dymo-deviceid.patch
|
||||||
|
Patch32: cups-freebind.patch
|
||||||
|
|
||||||
Patch100: cups-lspp.patch
|
Patch100: cups-lspp.patch
|
||||||
|
|
||||||
@ -239,6 +240,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
|
|||||||
%patch30 -p1 -b .stringpool-setprinterattr
|
%patch30 -p1 -b .stringpool-setprinterattr
|
||||||
# Added IEEE 1284 Device ID for a Dymo device (bug #747866).
|
# Added IEEE 1284 Device ID for a Dymo device (bug #747866).
|
||||||
%patch31 -p1 -b .dymo-deviceid
|
%patch31 -p1 -b .dymo-deviceid
|
||||||
|
# Use IP_FREEBIND socket option when binding listening sockets (bug #970809).
|
||||||
|
%patch32 -p1 -b .freebind
|
||||||
|
|
||||||
%if %lspp
|
%if %lspp
|
||||||
# LSPP support.
|
# LSPP support.
|
||||||
@ -640,6 +643,9 @@ rm -f %{cups_serverbin}/backend/smb
|
|||||||
%{_mandir}/man5/ipptoolfile.5.gz
|
%{_mandir}/man5/ipptoolfile.5.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 20 2013 Tim Waugh <twaugh@redhat.com> 1:1.7-0.7.b1
|
||||||
|
- Use IP_FREEBIND socket option when binding listening sockets (bug #970809).
|
||||||
|
|
||||||
* Tue Jun 18 2013 Tim Waugh <twaugh@redhat.com> 1:1.7-0.6.b1
|
* Tue Jun 18 2013 Tim Waugh <twaugh@redhat.com> 1:1.7-0.6.b1
|
||||||
- Added IEEE 1284 Device ID for a Dymo device (bug #747866).
|
- Added IEEE 1284 Device ID for a Dymo device (bug #747866).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user