1484916 - Can not get destinations from CUPS server

This commit is contained in:
Zdenek Dohnal 2017-10-02 11:44:15 +02:00
parent 0d64488ce7
commit 2a0cf20468
2 changed files with 26 additions and 1 deletions

19
cups-no-dest.patch Normal file
View File

@ -0,0 +1,19 @@
diff -up cups-2.2.4/cups/dest.c.no-dest cups-2.2.4/cups/dest.c
--- cups-2.2.4/cups/dest.c.no-dest 2017-10-02 10:39:19.615395062 +0200
+++ cups-2.2.4/cups/dest.c 2017-10-02 10:39:54.361104943 +0200
@@ -2059,15 +2059,6 @@ cupsGetDests2(http_t *http, /* I -
cupsEnumDests(0, 1000, NULL, 0, 0, (cups_dest_cb_t)cups_get_cb, &data);
- if (cupsLastError() >= IPP_STATUS_REDIRECTION_OTHER_SITE)
- {
- cupsFreeDests(data.num_dests, data.dests);
-
- *dests = (cups_dest_t *)0;
-
- return (0);
- }
-
/*
* Make a copy of the "real" queues for a later sanity check...
*/

View File

@ -15,7 +15,7 @@ Summary: CUPS printing system
Name: cups Name: cups
Epoch: 1 Epoch: 1
Version: 2.2.4 Version: 2.2.4
Release: 4%{?dist} Release: 5%{?dist}
License: GPLv2 License: GPLv2
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
@ -63,6 +63,7 @@ Patch36: cups-web-devices-timeout.patch
Patch37: cups-synconclose.patch Patch37: cups-synconclose.patch
Patch38: cups-resolv_reload.patch Patch38: cups-resolv_reload.patch
Patch39: cups-ypbind.patch Patch39: cups-ypbind.patch
Patch40: cups-no-dest.patch
Patch100: cups-lspp.patch Patch100: cups-lspp.patch
@ -258,6 +259,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
%patch38 -p1 -b .resolv_reload %patch38 -p1 -b .resolv_reload
# CUPS may fail to start if NIS groups are used (bug #1494558) # CUPS may fail to start if NIS groups are used (bug #1494558)
%patch39 -p1 -b .ypbind %patch39 -p1 -b .ypbind
# Can not get destinations from CUPS server (bug #1484916)
%patch40 -p1 -b .no-dest
%if %{lspp} %if %{lspp}
# LSPP support. # LSPP support.
@ -623,6 +626,9 @@ rm -f %{cups_serverbin}/backend/smb
%{_mandir}/man5/ipptoolfile.5.gz %{_mandir}/man5/ipptoolfile.5.gz
%changelog %changelog
* Mon Oct 02 2017 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.4-5
- 1484916 - Can not get destinations from CUPS server
* Fri Sep 22 2017 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.4-4 * Fri Sep 22 2017 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.2.4-4
- 1494558 - CUPS may fail to start if NIS groups are used - 1494558 - CUPS may fail to start if NIS groups are used