diff --git a/0001-Fix-delays-printing-to-lpd-when-reserved-ports-are-e.patch b/0001-Fix-delays-printing-to-lpd-when-reserved-ports-are-e.patch new file mode 100644 index 0000000..fdec951 --- /dev/null +++ b/0001-Fix-delays-printing-to-lpd-when-reserved-ports-are-e.patch @@ -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 diff --git a/cups.spec b/cups.spec index 0819f71..3bd04ac 100644 --- a/cups.spec +++ b/cups.spec @@ -15,7 +15,7 @@ Summary: CUPS printing system Name: cups Epoch: 1 Version: 2.2.6 -Release: 51%{?dist} +Release: 52%{?dist} License: GPLv2+ and LGPLv2 with exceptions and AML Url: http://www.cups.org/ 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 # 2130391 - Kerberized IPP Printing Fails 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 @@ -429,6 +431,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results. %patch78 -p1 -b .manpage-update # 2130391 - Kerberized IPP Printing Fails %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 @@ -848,6 +852,9 @@ rm -f %{cups_serverbin}/backend/smb %{_mandir}/man5/ipptoolfile.5.gz %changelog +* Thu Jun 29 2023 Zdenek Dohnal - 1:2.2.6-52 +- 2217178 - Delays printing to lpd when reserved ports are exhausted + * Mon Apr 03 2023 Zdenek Dohnal - 1:2.2.6-51 - RHEL-316 - Enable fmf tests in centos stream