2217177 - Delays printing to lpd when reserved ports are exhausted
Resolves: rhbz#2217177
This commit is contained in:
parent
35035e002c
commit
1ba1df1959
@ -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
|
@ -17,7 +17,7 @@ Summary: CUPS printing system
|
||||
Name: cups
|
||||
Epoch: 1
|
||||
Version: 2.3.3%{OP_VER}
|
||||
Release: 18%{?dist}
|
||||
Release: 19%{?dist}
|
||||
License: ASL 2.0
|
||||
Url: http://www.cups.org/
|
||||
# Apple stopped uploading the new versions into github, use OpenPrinting fork
|
||||
@ -105,6 +105,8 @@ Patch28: 0001-Update-man-pages-for-h-option-Issue-357.patch
|
||||
Patch29: 0001-scheduler-cert.c-Fix-string-comparison-fixes-CVE-202.patch
|
||||
# 2189919 - CGI scripts don't work with local Negotiate authentication
|
||||
Patch30: cups-local-negotiate.patch
|
||||
# 2217177 - Delays printing to lpd when reserved ports are exhausted
|
||||
Patch31: 0001-Fix-delays-printing-to-lpd-when-reserved-ports-are-e.patch
|
||||
|
||||
|
||||
##### Patches removed because IMHO they aren't no longer needed
|
||||
@ -341,6 +343,8 @@ to CUPS daemon. This solution will substitute printer drivers and raw queues in
|
||||
%patch29 -p1 -b .cve26691
|
||||
# 2189919 - CGI scripts don't work with local Negotiate authentication
|
||||
%patch30 -p1 -b .local-negotiate
|
||||
# 2217177 - Delays printing to lpd when reserved ports are exhausted
|
||||
%patch31 -p1 -b .lpd-delay
|
||||
|
||||
%if %{lspp}
|
||||
# LSPP support.
|
||||
@ -764,6 +768,9 @@ rm -f %{cups_serverbin}/backend/smb
|
||||
%{_mandir}/man7/ippeveps.7.gz
|
||||
|
||||
%changelog
|
||||
* Wed Jun 28 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-19
|
||||
- 2217177 - Delays printing to lpd when reserved ports are exhausted
|
||||
|
||||
* Wed Apr 26 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-18
|
||||
- 2189919 - CGI scripts don't work with local Negotiate authentication
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user