2217178 - Delays printing to lpd when reserved ports are exhausted
Resolves: rhbz#2217178
This commit is contained in:
parent
58e72c205a
commit
7eb68f998d
@ -0,0 +1,21 @@
|
|||||||
|
diff -up cups-2.3.3op2/backend/lpd.c.lpd-delay cups-2.3.3op2/backend/lpd.c
|
||||||
|
--- cups-2.3.3op2/backend/lpd.c.lpd-delay 2021-02-01 22:10:25.000000000 +0100
|
||||||
|
+++ cups-2.3.3op2/backend/lpd.c 2023-06-28 17:28:52.465476261 +0200
|
||||||
|
@@ -63,7 +63,7 @@ static int abort_job = 0; /* Non-zero i
|
||||||
|
|
||||||
|
#define RESERVE_NONE 0 /* Don't reserve a priviledged port */
|
||||||
|
#define RESERVE_RFC1179 1 /* Reserve port 721-731 */
|
||||||
|
-#define RESERVE_ANY 2 /* Reserve port 1-1023 */
|
||||||
|
+#define RESERVE_ANY 2 /* Reserve port 512-1023 */
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@ -778,7 +778,7 @@ lpd_queue(const char *hostname, /*
|
||||||
|
|
||||||
|
if (lport < 721 && reserve == RESERVE_RFC1179)
|
||||||
|
lport = 731;
|
||||||
|
- else if (lport < 1)
|
||||||
|
+ else if (lport < 512)
|
||||||
|
lport = 1023;
|
||||||
|
|
||||||
|
#ifdef HAVE_GETEUID
|
@ -15,7 +15,7 @@ Summary: CUPS printing system
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.2.6
|
Version: 2.2.6
|
||||||
Release: 51%{?dist}
|
Release: 52%{?dist}
|
||||||
License: GPLv2+ and LGPLv2 with exceptions and AML
|
License: GPLv2+ and LGPLv2 with exceptions and AML
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
Source0: https://github.com/apple/cups/releases/download/v%{VERSION}/cups-%{VERSION}-source.tar.gz
|
||||||
@ -143,6 +143,8 @@ Patch77: cups-retry-current-job-man.patch
|
|||||||
Patch78: 0001-Update-man-pages-for-h-option-Issue-357.patch
|
Patch78: 0001-Update-man-pages-for-h-option-Issue-357.patch
|
||||||
# 2130391 - Kerberized IPP Printing Fails
|
# 2130391 - Kerberized IPP Printing Fails
|
||||||
Patch79: cups-kerberos.patch
|
Patch79: cups-kerberos.patch
|
||||||
|
# 2217178 - Delays printing to lpd when reserved ports are exhausted
|
||||||
|
Patch80: 0001-Fix-delays-printing-to-lpd-when-reserved-ports-are-e.patch
|
||||||
|
|
||||||
Patch1000: cups-lspp.patch
|
Patch1000: cups-lspp.patch
|
||||||
|
|
||||||
@ -429,6 +431,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
|
|||||||
%patch78 -p1 -b .manpage-update
|
%patch78 -p1 -b .manpage-update
|
||||||
# 2130391 - Kerberized IPP Printing Fails
|
# 2130391 - Kerberized IPP Printing Fails
|
||||||
%patch79 -p1 -b .kerberos
|
%patch79 -p1 -b .kerberos
|
||||||
|
# 2217178 - Delays printing to lpd when reserved ports are exhausted
|
||||||
|
%patch80 -p1 -b .lpd-delay
|
||||||
|
|
||||||
sed -i -e '1iMaxLogSize 0' conf/cupsd.conf.in
|
sed -i -e '1iMaxLogSize 0' conf/cupsd.conf.in
|
||||||
|
|
||||||
@ -848,6 +852,9 @@ rm -f %{cups_serverbin}/backend/smb
|
|||||||
%{_mandir}/man5/ipptoolfile.5.gz
|
%{_mandir}/man5/ipptoolfile.5.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 29 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.6-52
|
||||||
|
- 2217178 - Delays printing to lpd when reserved ports are exhausted
|
||||||
|
|
||||||
* Mon Apr 03 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.6-51
|
* Mon Apr 03 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.6-51
|
||||||
- RHEL-316 - Enable fmf tests in centos stream
|
- RHEL-316 - Enable fmf tests in centos stream
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user