]> git.ipfire.org Git - thirdparty/cups-filters.git/log
thirdparty/cups-filters.git
3 years agoUpdated NEWS
Till Kamppeter [Wed, 12 Jan 2022 21:53:15 +0000 (18:53 -0300)] 
Updated NEWS

3 years agoBuild system: Make missing DejaVuSans.ttf non-fatal
Deepak Khatri [Wed, 12 Jan 2022 21:33:35 +0000 (03:03 +0530)] 
Build system: Make missing DejaVuSans.ttf non-fatal

DejaVuSans.ttf is only needed for test programs, not for actually using cups-filters. Therefore we make its absence non-fatal.

(cherry picked from commit e76802b2167fc6bf16b69c7971c8505b5f5cc57f)

4 years agolibcupsfilters: Let colord_get_profile_for_device_id() not return empty file name
Till Kamppeter [Sun, 19 Sep 2021 17:53:30 +0000 (19:53 +0200)] 
libcupsfilters: Let colord_get_profile_for_device_id() not return empty file name

If the function colord_get_profile_for_device_id() returns an empty
file name, the color generates an error message in the CUPS
error_log. Some print dialogs report every log message of level error
to the user even if the job got correctly printed.

4 years agofoomatic-rip: Debug message was wrongly sent to stdout and not to log
Till Kamppeter [Sun, 5 Sep 2021 09:36:28 +0000 (11:36 +0200)] 
foomatic-rip: Debug message was wrongly sent to stdout and not to log

Issue #422

(cherry picked from commit 32e60bb44a147b7f7612557b09818d60411c19fb)

4 years agocups-filters 1.28.10 Release 1.28.10
Till Kamppeter [Tue, 17 Aug 2021 11:23:15 +0000 (13:23 +0200)] 
cups-filters 1.28.10 Release

4 years agoUpdated NEWS
Till Kamppeter [Tue, 17 Aug 2021 11:20:56 +0000 (13:20 +0200)] 
Updated NEWS

4 years agoSample PPDs: To the Ricoh PDF PPD added borderless page sizes and fixed OpenUI/CloseU...
Till Kamppeter [Wed, 28 Jul 2021 10:44:12 +0000 (12:44 +0200)] 
Sample PPDs: To the Ricoh PDF PPD added borderless page sizes and fixed OpenUI/CloseUI bug

(cherry picked from commit 276d3814deae486b1a4f7fbedf3e08eecff534fe)

4 years agoSample PPDs: Add borderless page size definitions to PDF PPDs
Till Kamppeter [Wed, 28 Jul 2021 10:16:38 +0000 (12:16 +0200)] 
Sample PPDs: Add borderless page size definitions to PDF PPDs

(cherry picked from commit 8a69374061842dbfca1cd1eb1437d511c697725a)

4 years agoSample PPDs: Fixed typo in the PDF PPDs
Till Kamppeter [Mon, 26 Jul 2021 20:17:24 +0000 (22:17 +0200)] 
Sample PPDs: Fixed typo in the PDF PPDs

(cherry picked from commit 6f57650ee87b86ed6f2847ba4f0c300719938615)

4 years agoSample PPDs: From the PDF PPD files removed the unneeded "*cupsFilters2: ..."
Till Kamppeter [Mon, 26 Jul 2021 19:53:35 +0000 (21:53 +0200)] 
Sample PPDs: From the PDF PPD files removed the unneeded "*cupsFilters2: ..."

(cherry picked from commit 738492b437456430b75f6d09fd16d6328bd437c3)

4 years agolibcupsfilters: Fix page range like "10-" in pdftopdf() filter function
Till Kamppeter [Tue, 17 Aug 2021 11:03:39 +0000 (13:03 +0200)] 
libcupsfilters: Fix page range like "10-" in pdftopdf() filter function

(manually picked from commit 022c34fedb66f706b2ab82d7506d5b5b1fa18e1f)

4 years agoUpdated NEWS
Till Kamppeter [Tue, 17 Aug 2021 10:58:04 +0000 (12:58 +0200)] 
Updated NEWS

4 years agolibcupsfilters: Use wildcard tag search in the PPD generator
Jonathan Strine [Mon, 12 Jul 2021 22:18:32 +0000 (18:18 -0400)] 
libcupsfilters: Use wildcard tag search in the PPD generator

(cherry picked from commit 640ee0757d1b4ff7fc95b3e108c00f2c916ddda5)

4 years agoUpdated NEWS
Till Kamppeter [Tue, 17 Aug 2021 10:05:17 +0000 (12:05 +0200)] 
Updated NEWS

4 years agoimplicitclass, parallel: Added missing newlines at error messages
Till Kamppeter [Wed, 7 Jul 2021 14:23:38 +0000 (16:23 +0200)] 
implicitclass, parallel: Added missing newlines at error messages

(cherry picked from commit 283c703f71256456e5c65ba77fdee98057c15ace)

4 years agoUpdated NEWS
Till Kamppeter [Thu, 1 Jul 2021 15:07:15 +0000 (17:07 +0200)] 
Updated NEWS

(cherry picked from commit 4305e15977418c7353f6d0f3a1a62bddee5d0cd9)

4 years agolinfontembed: Removed unneeded fontembed/main.c and ttfread executable
Till Kamppeter [Thu, 1 Jul 2021 14:58:50 +0000 (16:58 +0200)] 
linfontembed: Removed unneeded fontembed/main.c and ttfread executable

(cherry picked from commit a6edd76fbcc87d1c9cda53332ce1d331961b504e)

4 years agoUpdated NEWS
Till Kamppeter [Thu, 8 Jul 2021 08:42:51 +0000 (10:42 +0200)] 
Updated NEWS

4 years agogstoraster: Fixed build failure
Till Kamppeter [Thu, 8 Jul 2021 07:15:41 +0000 (09:15 +0200)] 
gstoraster: Fixed build failure

4 years agogstoraster: Set the counted pages as job-impressions for PWG-Raster
Sean Kau [Thu, 8 Jul 2021 07:04:02 +0000 (00:04 -0700)] 
gstoraster: Set the counted pages as job-impressions for PWG-Raster

Co-authored-by: Sean Kau <skau@chromium.org>
4 years agoUpdated NEWS
Till Kamppeter [Fri, 25 Jun 2021 18:08:45 +0000 (20:08 +0200)] 
Updated NEWS

4 years agoUpdated NEWS
Till Kamppeter [Fri, 18 Jun 2021 10:36:02 +0000 (12:36 +0200)] 
Updated NEWS

(cherry picked from commit bcc26dc190420c6ab5940a95d95c238a81c98e7e)

4 years agocups-browsed.c: Make NotifLeaseDuration configurable and renew after half the lease...
zdohnal [Fri, 18 Jun 2021 10:27:53 +0000 (12:27 +0200)] 
cups-browsed.c: Make NotifLeaseDuration configurable and renew after half the lease duration not 60 sec before end

1) NotifLeaseDuration directive for cups-browsed.conf - it will make
   lease duration for notifications configurable by users. IMO it is not
   useful for regular users, but it is helpful during sanity testing
   (for verifying that we actually renew the subscription when time
   comes). The current hardcoded 1 day is unusuable for that :( .
   I implemented the lowest threshold to 300s to prevent a possible DoS.
2) Subscription renewal is set to happen in the middle of NotifLeaseDuration,
   not one minute before lease expiration. This was a problem on busy servers,
   where cups-browsed was busy and wasn't able to renew the subscription
   before cupsd removed it. Then if some jobs had come before the subscription
   was created again, the queue got disabled. The proposed approach is based
   on behavior of DHCP.

(cherry picked from commit d90a4fc57b00b4a1f6c196bcb96025251b555dd9)

4 years agocups-filters 1.28.9 Release 1.28.9
Till Kamppeter [Tue, 15 Jun 2021 19:23:47 +0000 (21:23 +0200)] 
cups-filters 1.28.9 Release

4 years agolibcupsfilters: Silenced compiler warnings
Till Kamppeter [Tue, 15 Jun 2021 19:21:23 +0000 (21:21 +0200)] 
libcupsfilters: Silenced compiler warnings

4 years agolibcupsfilters: Removed duplicate code in the apply_filters() function
Till Kamppeter [Mon, 14 Jun 2021 19:28:27 +0000 (21:28 +0200)] 
libcupsfilters: Removed duplicate code in the apply_filters() function

(cherry picked from commit a6ef18c1303e27da15c24fb53ec5d9e21c3acbb3)

4 years agodriverless: Changed way to emit exit code 0 when no printer found
Till Kamppeter [Tue, 8 Jun 2021 10:29:46 +0000 (12:29 +0200)] 
driverless: Changed way to emit exit code 0 when no printer found

(cherry picked from commit f4ac0102b7ecca8686eb2c70d20d12978ea5d880)

4 years agodriverless: Exit with 0 if no driverless IPP printers found
Till Kamppeter [Tue, 8 Jun 2021 09:34:27 +0000 (11:34 +0200)] 
driverless: Exit with 0 if no driverless IPP printers found

(cherry picked from commit 78b6b2c9875863352924eb937590f7ad7790c23f)

4 years agogstoraster, foomatic-rip: gs command line for counting pages takes too long
Till Kamppeter [Tue, 15 Jun 2021 18:50:02 +0000 (20:50 +0200)] 
gstoraster, foomatic-rip: gs command line for counting pages takes too long

4 years agoUpdated NEWS
Till Kamppeter [Tue, 15 Jun 2021 18:39:47 +0000 (20:39 +0200)] 
Updated NEWS

4 years agocups-browsed: Renamed ldap_connect() due to conflict in new openldap
Bhavna2020 [Wed, 12 May 2021 17:02:44 +0000 (22:32 +0530)] 
cups-browsed: Renamed ldap_connect() due to conflict in new openldap

(cherry picked from commit d8269287647819c96a24a8f345f0f541df45c866)

4 years agoUpdated NEWS
Till Kamppeter [Tue, 15 Jun 2021 18:37:41 +0000 (20:37 +0200)] 
Updated NEWS

4 years agoPdftoraster: free colour data after processing of each page (#363)
Pratyush Ranjan [Sun, 25 Apr 2021 14:11:56 +0000 (19:41 +0530)] 
Pdftoraster: free colour data after processing of each page (#363)

pdftoraster: Free colordata after end of each page, eliminating a severe memory leak
(cherry picked from commit 995a0271dbc2b0356930876154144003cb0eb86e)

4 years agoUpdated NEWS
Till Kamppeter [Fri, 16 Apr 2021 21:06:19 +0000 (23:06 +0200)] 
Updated NEWS

(cherry picked from commit ebea6315c3f261919ce3b04a1e3cc304275eadd2)

4 years agocups-browsed: Always save "...-default" option entries from printers.conf
Till Kamppeter [Thu, 15 Apr 2021 12:26:44 +0000 (14:26 +0200)] 
cups-browsed: Always save "...-default" option entries from printers.conf

(cherry picked from commit cdd61132e1719a88dd8006c65e8e260c1aaa02e4)

4 years agoUpdated NEWS
Till Kamppeter [Thu, 15 Apr 2021 10:28:58 +0000 (12:28 +0200)] 
Updated NEWS

(cherry picked from commit d552a92c1f8f4f051d174adb436966e2a35354b9)

4 years agoutils/cups-browsed.service: Add network-online.target (#360)
zdohnal [Thu, 15 Apr 2021 10:17:14 +0000 (12:17 +0200)] 
utils/cups-browsed.service: Add network-online.target (#360)

cups-browsed can be set to browsepolling remote servers, browsing remote
queues via CUPS protocol or sharing local queues via CUPS protocol.
Although sharing and browsing happens via browsesocket (which can be
solved by setting socket option IP_FREEBIND), browsepolling must have
network working to communicate with a remote server.

(cherry picked from commit 5ee93fae6e55cef4c8d670c54d2a011e9ab3b3af)

4 years agotexttopdf: Set default margins when no PPD file is used
suraj kulriya [Thu, 1 Apr 2021 09:09:02 +0000 (14:39 +0530)] 
texttopdf: Set default margins when no PPD file is used

(cherry picked from commit 46eb0755dc4334db2c77e14bcace9ed6abc6efe6)

4 years agocups-filters 1.28.8 Release 1.28.8
Till Kamppeter [Thu, 25 Mar 2021 16:55:12 +0000 (17:55 +0100)] 
cups-filters 1.28.8 Release

4 years ago libcupsfilters: Made driverless PPD generator more reliable for print or fax PPD
Till Kamppeter [Wed, 10 Mar 2021 19:27:45 +0000 (20:27 +0100)] 
 libcupsfilters: Made driverless PPD generator more reliable for print or fax PPD

(cherry picked from commit d7b22d732912bdc971b04d31a89083a9bce06657)

4 years agofoomatic-rip: Fixed segfault cause by wrong option parsing
Till Kamppeter [Tue, 9 Mar 2021 21:53:50 +0000 (22:53 +0100)] 
foomatic-rip: Fixed segfault cause by wrong option parsing

(cherry picked from commit 14a15d5d8404d6f12738d6071eadb38d8194c07c)

4 years agoUpdated NEWS
Till Kamppeter [Thu, 25 Feb 2021 17:49:43 +0000 (18:49 +0100)] 
Updated NEWS

(cherry picked from commit c74416371908e11174884447bd0a7f1df8063b85)

4 years agoimplicitclass: Raise timeout for cups-browsed's answer from 20s to 60s
Bhavna2020 [Thu, 25 Feb 2021 17:38:30 +0000 (23:08 +0530)] 
implicitclass: Raise timeout for cups-browsed's answer from 20s to 60s

(cherry picked from commit 6e5c375b56154301b193d4aba5eb80223eb0bd09)

4 years agoUpdated NEWS
Till Kamppeter [Thu, 21 Jan 2021 14:54:19 +0000 (15:54 +0100)] 
Updated NEWS

4 years agolibcupsfilters: In the PPD generator really give priority to Apple Raster against PDF
Till Kamppeter [Thu, 21 Jan 2021 14:50:26 +0000 (15:50 +0100)] 
libcupsfilters: In the PPD generator really give priority to Apple Raster against PDF

(cherry picked from commit bcd1aedeecb83fe9499d1d0c3dc0dab1ea32811c)

4 years agocups-filters 1.28.7 Release 1.28.7
Till Kamppeter [Thu, 7 Jan 2021 18:36:11 +0000 (19:36 +0100)] 
cups-filters 1.28.7 Release

4 years agoSmall correction in NEWS
Till Kamppeter [Thu, 7 Jan 2021 18:21:09 +0000 (19:21 +0100)] 
Small correction in NEWS

4 years agodriverless: Removed the support quality check
Till Kamppeter [Thu, 7 Jan 2021 09:14:40 +0000 (10:14 +0100)] 
driverless: Removed the support quality check

(cherry picked from commit 3fddcf5cb78a9abc55024804635d29f7ac0d96fb)

4 years agolibcupsfilters: In the PPD generator give priority to Apple Raster against PDF
Till Kamppeter [Sun, 20 Dec 2020 13:18:21 +0000 (14:18 +0100)] 
libcupsfilters: In the PPD generator give priority to Apple Raster against PDF

(cherry picked from commit 1b390962756bf10ac30a386225e20cbc72840fe7)

4 years agolibcupsfilters: Added NULL check when removing ".Borderless" suffixes from page size...
Till Kamppeter [Wed, 28 Oct 2020 09:44:19 +0000 (10:44 +0100)] 
libcupsfilters: Added NULL check when removing ".Borderless" suffixes from page size names

(cherry picked from commit 240ffb901d06a117bb8e10b486bfd3de6fe464b2)

4 years agolibcupsfilters: Corrected color space mapping in cupsRasterParseIPPOptions()
Till Kamppeter [Thu, 3 Dec 2020 22:46:25 +0000 (23:46 +0100)] 
libcupsfilters: Corrected color space mapping in cupsRasterParseIPPOptions()

(cherry picked from commit 1dc90ce0f0b7c050ca0bf6f24e889a0eda19c1fb)

4 years agoUpdated NEWS
Till Kamppeter [Thu, 3 Dec 2020 13:59:13 +0000 (14:59 +0100)] 
Updated NEWS

4 years agolibcupsfilters: Fix duplicate ColorModel entries in generated PPD files
Till Kamppeter [Thu, 3 Dec 2020 13:51:18 +0000 (14:51 +0100)] 
libcupsfilters: Fix duplicate ColorModel entries in generated PPD files

(cherry picked from commit a9389fa4a51b3c7fc45d29012d9b0b29a1b1794e)

4 years agocups-filters 1.28.6 Release 1.28.6
Till Kamppeter [Wed, 2 Dec 2020 16:16:06 +0000 (17:16 +0100)] 
cups-filters 1.28.6 Release

4 years agolibcupsfilters: In generated PPDs add a grayscale mode if only color available
Till Kamppeter [Tue, 1 Dec 2020 23:15:04 +0000 (00:15 +0100)] 
libcupsfilters: In generated PPDs add a grayscale mode if only color available

(cherry picked from commit 63b4b1ad9d82399b74254df5b65123831896257c)

4 years agoUpdated NEWS
Till Kamppeter [Wed, 2 Dec 2020 11:12:06 +0000 (12:12 +0100)] 
Updated NEWS

4 years agolibcupsfilters: In generated PPDs add an "OutputBin" option also with one choice
Till Kamppeter [Tue, 1 Dec 2020 22:51:02 +0000 (23:51 +0100)] 
libcupsfilters: In generated PPDs add an "OutputBin" option also with one choice

(cherry picked from commit 2c36d508b18c82c03c90054eeb0cc5fa70e95f7a)

4 years agolibcupsfilters: Generated PPDs could have an "Unknown" default InputSlot
Till Kamppeter [Tue, 1 Dec 2020 22:37:15 +0000 (23:37 +0100)] 
libcupsfilters: Generated PPDs could have an "Unknown" default InputSlot

(cherry picked from commit accfbb110692b7356cbb5a1c17a840ca2954698a)

4 years agocups-browsed: Fixed preservation of location/description info on local queues
Till Kamppeter [Fri, 27 Nov 2020 10:05:48 +0000 (11:05 +0100)] 
cups-browsed: Fixed preservation of location/description info on local queues

(cherry picked from commit ebc50cb99c42f5e105e2cc7bfb975b92e0307d00)

4 years agocups-browsed: Removed all calls of the resolve_uri() function
Till Kamppeter [Thu, 26 Nov 2020 21:29:47 +0000 (22:29 +0100)] 
cups-browsed: Removed all calls of the resolve_uri() function

(cherry picked from commit 7999624bd2d2e3297c44f88d7070f6f44f6db31d)

4 years agoUpdated NEWS
Till Kamppeter [Tue, 24 Nov 2020 17:19:22 +0000 (18:19 +0100)] 
Updated NEWS

4 years agocups-browsed.c: Fix nickname pointer memory leak
Zdenek Dohnal [Mon, 23 Nov 2020 13:47:15 +0000 (14:47 +0100)] 
cups-browsed.c: Fix nickname pointer memory leak

This memory leak was caused by losing the original pointer to allocated memory and
trying to free incomplete pointer. The fix reimplements acquiring of nickname
algorithm and allocates the precise memory for nickname. In case of error, the algorithm
reports an warning into debug log and continue with reading from PPD.

(cherry picked from commit 8aec40e19233b5900f2047c1927987735830808b)

4 years agocups-browsed.c: Call 'get_cluster_attributes()' earlier
Zdenek Dohnal [Mon, 23 Nov 2020 13:25:37 +0000 (14:25 +0100)] 
cups-browsed.c: Call 'get_cluster_attributes()' earlier

It looks like 'get_cluster_attributes()' needs to be called earlier than where it is now,
because the code checks 'printer_attributes' (where is the result of 'get_cluster_attributes()'
for clustered queues) before the first 'get_cluster_attributes()' right now, which looks like
an error. So the fix moves the 'get_cluster_attributes()' call before the first 'printer_attributes'
 query.

(cherry picked from commit d937acd4cdde9a9da8f3459f8ce1b6da196ba887)

4 years agocups-browsed.c: Add resolutionNew() to public API and missing brackets
Zdenek Dohnal [Mon, 23 Nov 2020 14:36:17 +0000 (15:36 +0100)] 
cups-browsed.c: Add resolutionNew() to public API and missing brackets

(cherry picked from commit 38fc176ea653a28eb49c85ddb4a67798d10e0f23)

4 years agocups-browsed.c: Initialize 'print_quality'
Zdenek Dohnal [Mon, 23 Nov 2020 14:11:46 +0000 (15:11 +0100)] 
cups-browsed.c: Initialize 'print_quality'

Initialize 'print_quality' to prevent conditional jump on uninitialized value.

(cherry picked from commit 21008bac5b78e94ab843369f3cfbe6fde0b3501c)

4 years agocups-browsed.c: Fix leakage of CUPS arrays when checking supported attrs
Zdenek Dohnal [Mon, 23 Nov 2020 14:07:25 +0000 (15:07 +0100)] 
cups-browsed.c: Fix leakage of CUPS arrays when checking supported attrs

(cherry picked from commit 919d08a128939d3583b125da6fa93114e9685795)

4 years agocups-browsed.c: Fix leakage of IPP response
Zdenek Dohnal [Mon, 23 Nov 2020 14:05:53 +0000 (15:05 +0100)] 
cups-browsed.c: Fix leakage of IPP response

The IPP response needs to be freed before possible breaking from a loop.

(cherry picked from commit 41b3cb9b17d72aef1b5ec55e30a4ad4a9cc3fa6d)

4 years agocups-browsed.c: Fix 'document_format' memory leak
Zdenek Dohnal [Mon, 23 Nov 2020 14:04:26 +0000 (15:04 +0100)] 
cups-browsed.c: Fix 'document_format' memory leak

(cherry picked from commit f7a8d67fbf386ab55d636a90b47e4ba902e7a2fc)

4 years agocups-browsed.c: Introduce a new pointer to prevent overwriting an allocated pointer
Zdenek Dohnal [Mon, 23 Nov 2020 14:02:44 +0000 (15:02 +0100)] 
cups-browsed.c: Introduce a new pointer to prevent overwriting an allocated pointer

(cherry picked from commit 4eeac772eaef158dce38cb5f8d2f48a3bb50a867)

4 years agocups-browsed.c: Fix conditional jumps based on uninitialized value
Zdenek Dohnal [Mon, 23 Nov 2020 13:53:37 +0000 (14:53 +0100)] 
cups-browsed.c: Fix conditional jumps based on uninitialized value

Strings added with IPP_TAG_MIMETYPE and IPP_TAG_KEYWORD tags use uninitialized
buffers, which causes random behavior. The buffers can be initialized via f.e.
'snprintf()'.

(cherry picked from commit 2fae57d0b96dcf6cbbdd4e30531ea2d18e7efeaa)

4 years agocups-browsed.c: Fix memory ipp_t struct memory leak
Zdenek Dohnal [Mon, 23 Nov 2020 13:38:00 +0000 (14:38 +0100)] 
cups-browsed.c: Fix memory ipp_t struct memory leak

(cherry picked from commit 5945bd8e93e2ca63ba9d189086ca1fd9379d2a1f)

4 years agoppdgenerator.c: Free printer_sizes array
Zdenek Dohnal [Mon, 23 Nov 2020 13:34:04 +0000 (14:34 +0100)] 
ppdgenerator.c: Free printer_sizes array

We need to free 'printer_sizes', which is allocated in 'ppdCreateFromIPP2()', instead of
'sizes', which is passed as a parameter - because it solves a memory leak and it doesn't
leave an invalid pointer.

(cherry picked from commit 10b3824ed1a24a7d67cb9ef149a43b2e603f4cea)

4 years agocups-browsed.c: Free the allocated memory if error happened and we have a cluster
Zdenek Dohnal [Mon, 23 Nov 2020 13:30:58 +0000 (14:30 +0100)] 
cups-browsed.c: Free the allocated memory if error happened and we have a cluster

The code previously leaked several structs, if an error occured during print cluster creation.

(cherry picked from commit 4d588e5d29fdb2396b45bec3a7cd2819fca761e0)

4 years agocups-browsed.c: revert a5a3344aea0bc9, silence the compiler warning
Zdenek Dohnal [Mon, 23 Nov 2020 13:19:49 +0000 (14:19 +0100)] 
cups-browsed.c: revert a5a3344aea0bc9, silence the compiler warning

Revert the commit a5a3344aea0bc9 because it puts back the invalid memory error, and just recast 'uuid' to 'char*'.

(cherry picked from commit 47adac020cda7247a271a203e0ffc4d94cadfde2)

4 years agocups-browsed.c: Free the memory in correct order
Zdenek Dohnal [Mon, 23 Nov 2020 13:09:54 +0000 (14:09 +0100)] 
cups-browsed.c: Free the memory in correct order

The 'temp' pointer has two allocated pointers inside, free them before freeing the main pointer.

(cherry picked from commit dc6c6798b14e115d997b583584c61e960de5c801)

4 years agocups-browsed.c: Remove unused pointer
Zdenek Dohnal [Mon, 23 Nov 2020 13:08:16 +0000 (14:08 +0100)] 
cups-browsed.c: Remove unused pointer

The 'temp' pointer looks unused, so remove it.

(cherry picked from commit 3453e98b77476c1ee165f671eace25790daca0d8)

4 years agocups-browsed.c: Add tagzero attributes as IPP_TAG_KEYWORD
Zdenek Dohnal [Mon, 23 Nov 2020 13:01:34 +0000 (14:01 +0100)] 
cups-browsed.c: Add tagzero attributes as IPP_TAG_KEYWORD

These attributes were added previously ass IPP_CONST_TAG(IPP_TAG_KEYWORD), which causes a problem
during 'ippDelete()' - const strings are not freed during 'ippDelete', which causes memory leaks,
because we send allocated strings into 'ippAddStrings'.
I chose this solution instead of defining a new function for freeing ipp_t struct, please let me
know if it is acceptable.

(cherry picked from commit 99b9f81be1fe31bdaaba97b6744949ae50ba3d19)

4 years agoppdgenerator.c, cups-browsed.c: Fix resolution struct leaks
Zdenek Dohnal [Mon, 23 Nov 2020 12:52:42 +0000 (13:52 +0100)] 
ppdgenerator.c, cups-browsed.c: Fix resolution struct leaks

The code leaks res_t struct in several places:
- if struct is added to CUPS array, which is defined with copy_resolution() as a copy function.
  copy_resolution() uses calloc(), so the original allocated res_t can be freed. The resolution
  functions are used in cups-browsed.c, so 'free_resolution()' has to be available outside in header
  file.
- overwritting previously allocated pointer with a new one in 'on_job_state()'

(cherry picked from commit 833063b41f4f0d0ddd18584d9662f8f672dd1030)

4 years agocups-browsed: Silenced compiler warning
Till Kamppeter [Fri, 13 Nov 2020 09:24:46 +0000 (10:24 +0100)] 
cups-browsed: Silenced compiler warning

(cherry picked from commit a5a3344aea0bc918533f2a7df03a7fcf9fbbb132)

4 years agoUpdated NEWS
Till Kamppeter [Fri, 13 Nov 2020 09:19:45 +0000 (10:19 +0100)] 
Updated NEWS

(cherry picked from commit acfd3cc97f414d8cb1d30f4dded7316634806f0e)

4 years agocups-filters: Fix foomatic-rip infinite loop
Pranav Batra [Fri, 13 Nov 2020 08:25:48 +0000 (08:25 +0000)] 
cups-filters: Fix foomatic-rip infinite loop

If the foomatic rip command is not present in the PPD file, the foomatic
rip filter runs cat by default to forward stdin to stdout. However,
if input is provided through a file instead of stdin, then this file
needs to be dup'd to stdin for the command to work properly.

Also, the next file needs to be selected each time an input file is
processed by calling strok_r in order to prevent an infinite loop.

TEST=foomatic-rip --ppd=ppd.ppd file.pdf

(cherry picked from commit a48d39fe501169a1fa21590dfa8594f2e6b931f4)

5 years agoUpdated NEWS
Till Kamppeter [Tue, 27 Oct 2020 08:30:39 +0000 (09:30 +0100)] 
Updated NEWS

(cherry picked from commit 698b1c494a0777a109f97f395e3735fbed47059f)

5 years agofoomatic-rip: remove tempfile created during pdf-to-ps conversion
Bryan Mason [Tue, 27 Oct 2020 03:36:11 +0000 (20:36 -0700)] 
foomatic-rip: remove tempfile created during pdf-to-ps conversion

(cherry picked from commit 1b62a73b5f3f5a7613b30972dd3c4c02816a2df3)

5 years agocups-filters 1.28.5 Release 1.28.5
Till Kamppeter [Tue, 13 Oct 2020 10:27:42 +0000 (12:27 +0200)] 
cups-filters 1.28.5 Release

5 years agoUpdated NEWS
Till Kamppeter [Mon, 12 Oct 2020 21:34:30 +0000 (23:34 +0200)] 
Updated NEWS

5 years agocups-browsed.c: uuid was used after its pointer was freed by ippDelete()
Zdenek Dohnal [Mon, 12 Oct 2020 11:01:05 +0000 (13:01 +0200)] 
cups-browsed.c: uuid was used after its pointer was freed by ippDelete()

(cherry picked from commit c43be849f83f9a3804d50ebb7d7f949f28c1c22a)

5 years agocups-filters 1.28.4 Release 1.28.4
Till Kamppeter [Thu, 8 Oct 2020 10:03:09 +0000 (12:03 +0200)] 
cups-filters 1.28.4 Release

5 years agoUpdated NEWS
Till Kamppeter [Thu, 8 Oct 2020 09:50:59 +0000 (11:50 +0200)] 
Updated NEWS

5 years agodriverless: Always output debug message when ippfind terminates successfully
Till Kamppeter [Thu, 1 Oct 2020 18:04:09 +0000 (20:04 +0200)] 
driverless: Always output debug message when ippfind terminates successfully

(cherry picked from commit f50690e64fd24ac8aa631c53f5385370a0270d68)

5 years agodriverless: Avoid duplicate PPD list entries from the same device via UUID
Till Kamppeter [Thu, 1 Oct 2020 17:59:34 +0000 (19:59 +0200)] 
driverless: Avoid duplicate PPD list entries from the same device via UUID

(cherry picked from commit 4dc5eb3dfa0e68c1c15f8feda849558094e677a0)

5 years agodriverless: Reduce "ippfind" calls by "driverless" called by CUPS also listing fax...
Till Kamppeter [Thu, 1 Oct 2020 16:47:43 +0000 (18:47 +0200)] 
driverless: Reduce "ippfind" calls by "driverless" called by CUPS also listing fax PPDs, also avoid duplicate listings in printer discovery

(cherry picked from commit 67ab5d6fe1412534195f111f52b89d5d46fbb7a0)

5 years agodriverless: Whitespace/Indentation clean-up
Till Kamppeter [Thu, 1 Oct 2020 12:53:32 +0000 (14:53 +0200)] 
driverless: Whitespace/Indentation clean-up

(cherry picked from commit d8ca47a40cf362647199e18413d72e9db7c70d72)

5 years agodriverless: Simplified code as "ippfind" allows more than on reg type on its command...
Till Kamppeter [Thu, 1 Oct 2020 11:54:36 +0000 (13:54 +0200)] 
driverless: Simplified code as "ippfind" allows more than on reg type on its command line

(cherry picked from commit e88fa6a33dff191ac6af6029a243fd3c40d0fca3)

5 years agoSample PPDs: Corrected manufacturer name in Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd
Till Kamppeter [Tue, 29 Sep 2020 20:57:53 +0000 (22:57 +0200)] 
Sample PPDs: Corrected manufacturer name in Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd

(cherry picked from commit 0a88edb1a633c48c5feb7440aff937cda53508bf)

5 years agocups-filters 1.28.3 Release 1.28.3
Till Kamppeter [Thu, 24 Sep 2020 10:18:29 +0000 (12:18 +0200)] 
cups-filters 1.28.3 Release

5 years agolibcupsfilters: Fixed inconsistency between resolvers for DNS-SD-based URIs
Till Kamppeter [Thu, 17 Sep 2020 14:49:09 +0000 (16:49 +0200)] 
libcupsfilters: Fixed inconsistency between resolvers for DNS-SD-based URIs

(cherry picked from commit 80b6ad72d439b8ac8171c075e0fe47b0cf282fcd)

5 years agodriverless: Fix uninitialized buffer and parsing ippfind output
Zdenek Dohnal [Thu, 17 Sep 2020 13:34:08 +0000 (15:34 +0200)] 
driverless: Fix uninitialized buffer and parsing ippfind output

(cherry picked from commit 72d8c479d35a262f6d98206b58b18801fdb76982)

5 years agocups-filters 1.28.2 Release 1.28.2
Till Kamppeter [Thu, 10 Sep 2020 19:44:03 +0000 (21:44 +0200)] 
cups-filters 1.28.2 Release

5 years agoUpdated NEWS
Till Kamppeter [Thu, 10 Sep 2020 19:27:34 +0000 (21:27 +0200)] 
Updated NEWS

(cherry picked from commit ec9e78277014aa166a2b41ce9471db17aa8f9dda)

5 years agoFree the used memory
Zdenek Dohnal [Mon, 7 Sep 2020 10:15:57 +0000 (12:15 +0200)] 
Free the used memory

(cherry picked from commit 2bdc90b9b4b721a3147439b384dd603f84ab1081)