]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
22 months agoMerge pull request from GHSA-pf5r-86w9-678h
zdohnal [Wed, 20 Sep 2023 12:35:03 +0000 (14:35 +0200)] 
Merge pull request from GHSA-pf5r-86w9-678h

raster-interpret.c: Fix CVE-2023-4504

22 months agoGet rid of some obsolete defines: HAVE_CRYPT_H, HAVE_DNSSD, HAVE_SHADOW_H, and
Michael R Sweet [Mon, 18 Sep 2023 14:58:45 +0000 (10:58 -0400)] 
Get rid of some obsolete defines: HAVE_CRYPT_H, HAVE_DNSSD, HAVE_SHADOW_H, and
HAVE_RRESVPORT_AF.

22 months agoRequire getaddrinfo and getnameinfo.
Michael R Sweet [Mon, 18 Sep 2023 13:20:13 +0000 (09:20 -0400)] 
Require getaddrinfo and getnameinfo.

22 months agoGet rid of the last zlib conditional code.
Michael R Sweet [Mon, 18 Sep 2023 13:02:38 +0000 (09:02 -0400)] 
Get rid of the last zlib conditional code.

22 months agoFix Xcode project, build libcups2.dylib and friends to avoid conflicts with system...
Michael R Sweet [Sun, 17 Sep 2023 15:27:22 +0000 (11:27 -0400)] 
Fix Xcode project, build libcups2.dylib and friends to avoid conflicts with system-supplied libcups.dylib.

22 months agoUpdate CHANGES.md with latest changes in 2.5
Zdenek Dohnal [Fri, 15 Sep 2023 13:02:08 +0000 (15:02 +0200)] 
Update CHANGES.md with latest changes in 2.5

22 months agocups/http-addrlist.c: Fix hanging on Solaris
zdohnal [Fri, 15 Sep 2023 12:26:02 +0000 (14:26 +0200)] 
cups/http-addrlist.c: Fix hanging on Solaris

Solaris behaves differently regarding connecting to a socket, so our current code caused hanging.

The patch is from @l1gi's comment in #156

Fixes #156

22 months agocups/http-addrlist.c: Fix hanging on Solaris 788/head
Zdenek Dohnal [Thu, 14 Sep 2023 15:47:37 +0000 (17:47 +0200)] 
cups/http-addrlist.c: Fix hanging on Solaris

Solaris behaves differently regarding connecting to a socket, so our
current code caused hanging.

The patch is from @l1gi's comment -
https://github.com/OpenPrinting/cups/issues/156#issuecomment-1329212604

Fixes #156

22 months agoFix "make test" and remove debug printf.
Michael R Sweet [Thu, 14 Sep 2023 20:42:43 +0000 (16:42 -0400)] 
Fix "make test" and remove debug printf.

22 months agoDon't ignore built mantohtml now that it is gone.
Michael R Sweet [Wed, 13 Sep 2023 18:25:39 +0000 (14:25 -0400)] 
Don't ignore built mantohtml now that it is gone.

22 months agoUpdate HTML versions of man pages to use external mantohtml utility.
Michael R Sweet [Wed, 13 Sep 2023 18:20:29 +0000 (14:20 -0400)] 
Update HTML versions of man pages to use external mantohtml utility.

Update help CGI to put files with "man-" at the front in the "Man Pages"
section by default.

Drop old mantohtml conversion program.

22 months agoUpdate localization files.
Michael R Sweet [Wed, 13 Sep 2023 17:51:03 +0000 (13:51 -0400)] 
Update localization files.

22 months agoFix Coverity-discovered issues.
Michael R Sweet [Wed, 13 Sep 2023 17:47:55 +0000 (13:47 -0400)] 
Fix Coverity-discovered issues.

22 months agoAddress code scanning issues.
Michael R Sweet [Wed, 13 Sep 2023 14:43:43 +0000 (10:43 -0400)] 
Address code scanning issues.

22 months agoFix Windows VC project (again).
Michael R Sweet [Wed, 13 Sep 2023 14:17:16 +0000 (10:17 -0400)] 
Fix Windows VC project (again).

22 months agoFix Linux build issue.
Michael R Sweet [Wed, 13 Sep 2023 14:02:26 +0000 (10:02 -0400)] 
Fix Linux build issue.

22 months agoUpdate Xcode project.
Michael R Sweet [Wed, 13 Sep 2023 14:00:27 +0000 (10:00 -0400)] 
Update Xcode project.

22 months agoUpdate Windows build files.
Michael R Sweet [Wed, 13 Sep 2023 13:55:54 +0000 (09:55 -0400)] 
Update Windows build files.

22 months agoAdd missing source file and ignore new unit test files.
Michael R Sweet [Wed, 13 Sep 2023 13:53:49 +0000 (09:53 -0400)] 
Add missing source file and ignore new unit test files.

22 months agoUpdate CHANGES.md
Zdenek Dohnal [Wed, 13 Sep 2023 11:55:12 +0000 (13:55 +0200)] 
Update CHANGES.md

22 months agoFix behavior of "reserve=rfc1179" in backend/lpd.c
zdohnal [Wed, 13 Sep 2023 11:49:26 +0000 (13:49 +0200)] 
Fix behavior of "reserve=rfc1179" in backend/lpd.c

In backend/lpd.c, if "reserve=rfc1179" is used in the Device URI, ports from 512-731 will be used instead of only 721=731 as per RFC 1179.

cups_rresvport() starts with the value of lport passed in to the function and decrements lport to 512 until an open port is found. Thus, if all ports from 731-721 are unavailable, cups_rresvport() will start binding to ports between 720-512.

This patch resolves this issue by adding a parameter to cups_rresvport() that defines the minimum port number that should be used and makes the appropriate changes in lpd_queue().

Resolves #743

22 months agoFix lpstat hanging on IBM AIX
Zdenek Dohnal [Wed, 13 Sep 2023 08:28:13 +0000 (10:28 +0200)] 
Fix lpstat hanging on IBM AIX

Some macros and functions weren't defined on IBM AIX, define them.

Update CHANGES.md as well with older fixes.

Fixes #773

22 months agoStop using HAVE_LIBZ.
Michael R Sweet [Tue, 12 Sep 2023 19:52:30 +0000 (15:52 -0400)] 
Stop using HAVE_LIBZ.

22 months agocups/versioning.h -> cups/base.h
Michael R Sweet [Tue, 12 Sep 2023 19:18:45 +0000 (15:18 -0400)] 
cups/versioning.h -> cups/base.h

Drop old _CUPS_API_M_m macros, just use _CUPS_PUBLIC

Add form, JSON, and JWT APIs from libcups v3.

22 months agoNew IPP and raster APIs, plus cleanup.
Michael R Sweet [Mon, 11 Sep 2023 23:09:39 +0000 (19:09 -0400)] 
New IPP and raster APIs, plus cleanup.

22 months agoChangelog and tweak digest 'qop' parameter change.
Michael R Sweet [Sun, 10 Sep 2023 23:08:47 +0000 (19:08 -0400)] 
Changelog and tweak digest 'qop' parameter change.

22 months agoAdd new array APIs, remove old private array header, update unit tests, update
Michael R Sweet [Sun, 10 Sep 2023 22:48:17 +0000 (18:48 -0400)] 
Add new array APIs, remove old private array header, update unit tests, update
ippfind to use new array and DNS-SD APIs, update other code as needed to not
use deprecated APIs.

22 months agoMerge pull request #260 from mgoppold/http_auth_with_qop
Michael R Sweet [Sun, 10 Sep 2023 23:06:27 +0000 (19:06 -0400)] 
Merge pull request #260 from mgoppold/http_auth_with_qop

use http->qop insted of http->algorithm to decide RFC 2617/7616 or RFC 2069 Digest response

22 months agoMerge branch 'master' into http_auth_with_qop 260/head
Michael R Sweet [Sun, 10 Sep 2023 23:05:54 +0000 (19:05 -0400)] 
Merge branch 'master' into http_auth_with_qop

22 months agoRun unit tests when you do a "make test".
Michael R Sweet [Sun, 10 Sep 2023 21:58:29 +0000 (17:58 -0400)] 
Run unit tests when you do a "make test".

22 months agoSeparate building unit test programs from running them.
Michael R Sweet [Sun, 10 Sep 2023 21:57:57 +0000 (17:57 -0400)] 
Separate building unit test programs from running them.

Fix typo in cupsGetDests unit test.

22 months agoMigrate to DNS-SD API.
Michael R Sweet [Sun, 10 Sep 2023 14:04:43 +0000 (10:04 -0400)] 
Migrate to DNS-SD API.

22 months ago_TIME_BITS and _FILE_OFFSET_BITS (not two __)
Michael R Sweet [Fri, 8 Sep 2023 21:14:30 +0000 (17:14 -0400)] 
_TIME_BITS and _FILE_OFFSET_BITS (not two __)

22 months ago__FILE_OFFSET_BITS
Michael R Sweet [Fri, 8 Sep 2023 21:09:45 +0000 (17:09 -0400)] 
__FILE_OFFSET_BITS

22 months agoChange 64-bit time_t defines.
Michael R Sweet [Fri, 8 Sep 2023 20:59:43 +0000 (16:59 -0400)] 
Change 64-bit time_t defines.

22 months agoFix global lock.
Michael R Sweet [Fri, 8 Sep 2023 20:51:57 +0000 (16:51 -0400)] 
Fix global lock.

22 months agoAdd __TIMESIZE=64
Michael R Sweet [Fri, 8 Sep 2023 20:38:17 +0000 (16:38 -0400)] 
Add __TIMESIZE=64

22 months agoUpdate Windows DLL exports file.
Michael R Sweet [Fri, 8 Sep 2023 20:14:46 +0000 (16:14 -0400)] 
Update Windows DLL exports file.

22 months agoFix GNU TLS builds.
Michael R Sweet [Fri, 8 Sep 2023 20:13:22 +0000 (16:13 -0400)] 
Fix GNU TLS builds.

22 months agoFix other instances of code that looked for HAVE_POLL - poll() is always available.
Michael R Sweet [Fri, 8 Sep 2023 18:22:43 +0000 (14:22 -0400)] 
Fix other instances of code that looked for HAVE_POLL - poll() is always available.

22 months agoAnother missing header.
Michael R Sweet [Fri, 8 Sep 2023 17:11:23 +0000 (13:11 -0400)] 
Another missing header.

22 months agoFix missing include.
Michael R Sweet [Fri, 8 Sep 2023 17:07:25 +0000 (13:07 -0400)] 
Fix missing include.

22 months agoMove strlcat/cpy to cupsConcat/CopyString.
Michael R Sweet [Fri, 8 Sep 2023 16:48:37 +0000 (12:48 -0400)] 
Move strlcat/cpy to cupsConcat/CopyString.

22 months agoMove strlcat/cpy to cupsConcat/CopyString.
Michael R Sweet [Fri, 8 Sep 2023 16:45:20 +0000 (12:45 -0400)] 
Move strlcat/cpy to cupsConcat/CopyString.

22 months agoFix builds...
Michael R Sweet [Fri, 8 Sep 2023 16:37:59 +0000 (12:37 -0400)] 
Fix builds...

22 months agoSynch CodeQL CI with 2.4.x
Zdenek Dohnal [Fri, 8 Sep 2023 08:43:54 +0000 (10:43 +0200)] 
Synch CodeQL CI with 2.4.x

22 months agoCI: Github Actions don't run on 2.4.x
Zdenek Dohnal [Fri, 8 Sep 2023 05:54:17 +0000 (07:54 +0200)] 
CI: Github Actions don't run on 2.4.x

Try a different syntax

22 months agoUpdate CHANGES.md
Zdenek Dohnal [Fri, 8 Sep 2023 05:02:21 +0000 (07:02 +0200)] 
Update CHANGES.md

22 months agoCleanup, removal of deprecated constants, DEBUG_printf modernization.
Michael R Sweet [Thu, 7 Sep 2023 21:58:52 +0000 (17:58 -0400)] 
Cleanup, removal of deprecated constants, DEBUG_printf modernization.

22 months agoFix dependencies.
Michael R Sweet [Mon, 4 Sep 2023 22:28:15 +0000 (18:28 -0400)] 
Fix dependencies.

Update MD5 hash implementation to be provided unconditionally.

22 months agoFix typo.
Michael R Sweet [Mon, 4 Sep 2023 20:33:55 +0000 (16:33 -0400)] 
Fix typo.

22 months agoStart integrating some of the new CUPS APIs from v3 so we have a clean
Michael R Sweet [Sun, 3 Sep 2023 22:11:07 +0000 (18:11 -0400)] 
Start integrating some of the new CUPS APIs from v3 so we have a clean
transition.

22 months agoIgnore new test program.
Michael R Sweet [Sun, 3 Sep 2023 15:24:12 +0000 (11:24 -0400)] 
Ignore new test program.

22 months agoUpdate CHANGES.md
Zdenek Dohnal [Mon, 4 Sep 2023 12:23:53 +0000 (14:23 +0200)] 
Update CHANGES.md

22 months agoscheduler/conf.c: Print to stderr if we can't open cups-files.conf
zdohnal [Mon, 4 Sep 2023 06:44:21 +0000 (08:44 +0200)] 
scheduler/conf.c: Print to stderr if we can't open cups-files.conf

In case cupsd can't open the cups-files.conf, the error message is lost if journal and syslog don't exist or work on system (usually in containers).

Log the error into stderr at this place to get the error message if needed.

22 months agoChangelog.
Michael R Sweet [Sun, 3 Sep 2023 02:24:02 +0000 (22:24 -0400)] 
Changelog.

22 months agoAdd DNS-SD, cupsCopyString, and cupsConcatString APIs from libcups v3.
Michael R Sweet [Sun, 3 Sep 2023 02:22:45 +0000 (22:22 -0400)] 
Add DNS-SD, cupsCopyString, and cupsConcatString APIs from libcups v3.

22 months agoUpdate sample driver version to match CUPS version.
Michael R Sweet [Sun, 3 Sep 2023 01:39:07 +0000 (21:39 -0400)] 
Update sample driver version to match CUPS version.

22 months agoInitial update of TLS support - no more SSPI or Security.framework (CDSA)
Michael R Sweet [Sun, 3 Sep 2023 01:19:10 +0000 (21:19 -0400)] 
Initial update of TLS support - no more SSPI or Security.framework (CDSA)
support.

Require TLS support.

23 months agoscheduler/conf.c: Print to stderr if we don't open cups-files.conf 777/head
Zdenek Dohnal [Fri, 1 Sep 2023 15:11:54 +0000 (17:11 +0200)] 
scheduler/conf.c: Print to stderr if we don't open cups-files.conf

In case cupsd can't open the cups-files.conf, the error message is lost
if journal and syslog don't exist or work on system (usually in
containers).

Log the error into stderr at this place to get the error message if
needed.

23 months agoraster-interpret.c: Fix CVE-2023-4504
Zdenek Dohnal [Fri, 1 Sep 2023 14:47:29 +0000 (16:47 +0200)] 
raster-interpret.c: Fix CVE-2023-4504

We didn't check for end of buffer if it looks there is an escaped
character - check for NULL terminator there and if found, return NULL
as return value and in `ptr`, because a lone backslash is not
a valid PostScript character.

23 months agoAdd image/urf and image/pwg-raster filters for test server (for testing AirPrint...
Michael R Sweet [Thu, 10 Aug 2023 21:30:29 +0000 (17:30 -0400)] 
Add image/urf and image/pwg-raster filters for test server (for testing AirPrint/IPP Everywhere compatibility.

2 years agoFix a bug in the copy stack code (Issue #768)
Michael R Sweet [Wed, 2 Aug 2023 12:26:35 +0000 (08:26 -0400)] 
Fix a bug in the copy stack code (Issue #768)

2 years agoscheduler/job.c: Fix extensive logging in scheduler
zdohnal [Thu, 27 Jul 2023 16:48:19 +0000 (18:48 +0200)] 
scheduler/job.c: Fix extensive logging in scheduler

Based on currently unknown trigger scheduler sometimes sets JobHistoryUpdate into past, which causes select() to timeout after one second.

It happens when job->file_time of a job without files to remove gets assigned to JobHistoryUpdate. If we check for job->num_files and assign the job->file_time only if there are any, we will fix extensive logging (and unneeded cupsd execution) in various places, e.g. cleaning jobs, expiring subscriptions, deleting temporary queues...

Fixes #604

2 years agoscheduler/job.c: Fix extensive logging in scheduler 767/head
Zdenek Dohnal [Thu, 27 Jul 2023 10:34:52 +0000 (12:34 +0200)] 
scheduler/job.c: Fix extensive logging in scheduler

Based on currently unknown trigger scheduler sometimes sets
JobHistoryUpdate into past, which causes `select()` to timeout after one
second.

It happens when `job->file_time` of a job without files to remove gets
assigned to `JobHistoryUpdate`. If we check for `job->num_files` and
assign the `job->file_time` only if there are any, we will fix extensive
logging (and unneeded cupsd execution) in various places, e.g. cleaning
jobs, expiring subscriptions, deleting temporary queues...

Fixes #604

2 years agoEnable manual builds.
Michael R Sweet [Tue, 25 Jul 2023 19:17:31 +0000 (15:17 -0400)] 
Enable manual builds.

2 years agoUpdate LibreSSL version used by VC projects.
Michael R Sweet [Tue, 25 Jul 2023 18:58:44 +0000 (14:58 -0400)] 
Update LibreSSL version used by VC projects.

2 years agoUpdate REPORTING_ISSUES.md
zdohnal [Fri, 14 Jul 2023 05:50:54 +0000 (07:50 +0200)] 
Update REPORTING_ISSUES.md

Use `lpstat -l -e` in the document - its output gives easier distinction between temporary and permanent queues.

Thank you Brian Potkin for suggestion!

2 years agoMerge pull request #745 from zdohnal/ippeveprint_man
zdohnal [Thu, 13 Jul 2023 15:28:30 +0000 (17:28 +0200)] 
Merge pull request #745 from zdohnal/ippeveprint_man

Update ippeveprinter documentation

2 years agoApply feedback 745/head
Zdenek Dohnal [Thu, 13 Jul 2023 13:29:25 +0000 (15:29 +0200)] 
Apply feedback

2 years agoUpdate help pages via mantohtml
Zdenek Dohnal [Wed, 28 Jun 2023 12:27:17 +0000 (14:27 +0200)] 
Update help pages via mantohtml

2 years agomantohtml.c: Fix leftovers of strtod()->atof() migration
Zdenek Dohnal [Wed, 28 Jun 2023 12:25:51 +0000 (14:25 +0200)] 
mantohtml.c: Fix leftovers of strtod()->atof() migration

2 years agoman: Fix ippeveprinter man page
Zdenek Dohnal [Wed, 28 Jun 2023 12:22:36 +0000 (14:22 +0200)] 
man: Fix ippeveprinter man page

- explain further parameter `-F` (fixes #744)
- add missing explanation of parameters `-K` and `-a`

2 years agoUpdate pt-BR translation (#613)
Guilherme Gonzaga [Wed, 12 Jul 2023 12:06:25 +0000 (08:06 -0400)] 
Update pt-BR translation (#613)

Translations provided by Guilherme Gonzaga, thanks a lot!

2 years agoUse ASN1_TIME_to_tm when converting X.509 date/time values.
Michael R Sweet [Tue, 11 Jul 2023 20:08:21 +0000 (16:08 -0400)] 
Use ASN1_TIME_to_tm when converting X.509 date/time values.

2 years agoFix behavior of "reserve=rfc1179" in backend/lpd.c 746/head
Bryan Mason [Wed, 28 Jun 2023 19:55:15 +0000 (12:55 -0700)] 
Fix behavior of "reserve=rfc1179" in backend/lpd.c

In backend/lpd.c, if "reserve=rfc1179" is used in the Device URI,
ports from 512-731 will be used instead of only 721=731 as per RFC
1179.

cups_rresvport() starts with the value of lport passed in to the
function and decrements lport to 512 until an open port is found.
Thus, if all ports from 731-721 are unavailable, cups_rresvport() will
start binding to ports between 720-512.

This patch resolves this issue by adding a parameter to
cups_rresvport() that defines the minimum port number that should be
used and makes the appropriate changes in lpd_queue().

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Tue, 27 Jun 2023 11:29:50 +0000 (13:29 +0200)] 
Update CHANGES.md

2 years agoUse "purge-job" instead of "purge-jobs" when canceling a single job (#742)
Bryan Mason [Tue, 27 Jun 2023 11:18:46 +0000 (04:18 -0700)] 
Use "purge-job" instead of "purge-jobs" when canceling a single job (#742)

The command "cancel -x <job>" adds "purge-jobs true" to the Cancel-Job
operation; however, the correct attribute to use for Cancel-job is
"purge-job" (singular), not "purge-jobs" (plural).  As a result, job
files are not removed from /var/spool/cups when "cancel -x <job>" is
executed.

This patch resolves the issue by adding "purge-job" when the IPP
operation is Cancel-Job and "purge-jobs" for other IPP operations
(Purge-Jobs, Cancel-Jobs, and Cancel-My-Jobs)

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Tue, 27 Jun 2023 06:21:43 +0000 (08:21 +0200)] 
Update CHANGES.md

2 years agoFix delays in printing to lpd when reserved ports are exhausted (Issue #741)
zdohnal [Mon, 26 Jun 2023 14:24:33 +0000 (16:24 +0200)] 
Fix delays in printing to lpd when reserved ports are exhausted (Issue #741)

We use our internal implementation for BSD resvport() by default in LPD backend, which should act on port ranges 512 - 1023, however we didn't go back to the highest port number once we got under the lowest port number. This caused a delay 511s long until  `lpd_queue()` got the port number to 0, which triggered the assignment of the highest port number.

The highest port number is assigned right after we cross the lowest port number, which eliminates this kind of delay.

PR by Bryan Mason from Red Hat

2 years agoFix delays printing to lpd when reserved ports are exhausted 741/head
Bryan Mason [Sat, 24 Jun 2023 19:31:23 +0000 (12:31 -0700)] 
Fix delays printing to lpd when reserved ports are exhausted

cups_rresvport() doesn't reserve ports less than 512; however,
lpd_queue() continues decrementing the port number to 0.  This leads
to delays of ~511 seconds once all ports between 512-1023 are
exhausted.  Even when ports become available, lpd_queue() still tries
calling cups_rresvport() with port numbers less than 512, waiting one
second between each call.

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Thu, 22 Jun 2023 10:15:20 +0000 (12:15 +0200)] 
Update CHANGES.md

2 years agoMerge pull request from GHSA-qjgh-5hcq-5f25
zdohnal [Thu, 22 Jun 2023 10:00:56 +0000 (12:00 +0200)] 
Merge pull request from GHSA-qjgh-5hcq-5f25

Log result of httpGetHostname BEFORE closing the connection

2 years agoMerge pull request #729 from zdohnal/cupssinglefile
zdohnal [Thu, 15 Jun 2023 07:04:42 +0000 (09:04 +0200)] 
Merge pull request #729 from zdohnal/cupssinglefile

cups/ppd-cache.c: Put cupsSingleFile into generated PPD

2 years agocups/ppd-cache.c: Put cupsSingleFile into generated PPD 729/head
Zdenek Dohnal [Wed, 14 Jun 2023 07:55:33 +0000 (09:55 +0200)] 
cups/ppd-cache.c: Put cupsSingleFile into generated PPD

Some printers are not able to print multiple files in one job via IPP
Everywhere. Adding the PPD keyword enables the feature on all printers
in exchange for performance degradation (there is a 1-2s pause between
printed files).

Fixes #643

2 years agoMerge pull request #726 from AtariDreams/Fix-regression
Till Kamppeter [Sun, 11 Jun 2023 21:31:27 +0000 (23:31 +0200)] 
Merge pull request #726 from AtariDreams/Fix-regression

Regression: Certificate data is corrupted during base64 conversion

2 years agoRegression: Certificate data is corrupted during base64 conversion 726/head
Rose [Sun, 11 Jun 2023 20:09:53 +0000 (16:09 -0400)] 
Regression: Certificate data is corrupted during base64 conversion

The bug during which certificates become corrupt was introduced in a521b235a1abc008cb0b2f490a765bb31e2ec14b. It turns out some data was not being truncated after being promoted to an integer, causing 1s to be ORed into the index number when they should not have been.

I only intended to remove the & 255 from the other side, where the & 63 would have rendered that operation redundant.

I apologize for this error. I made the appropriate changes I intended to make in this new PR.

Please merge and make a new release if possible.

Thank you so much!

2 years agoLog result of httpGetHostname BEFORE closing the connection
Rose [Thu, 1 Jun 2023 15:33:39 +0000 (11:33 -0400)] 
Log result of httpGetHostname BEFORE closing the connection

httpClose frees the memory of con->http. This is problematic because httpGetHostname then tries to access the memory it points to.

We have to log the hostname first.

2 years agoUpdate CHANGES.md
Zdenek Dohnal [Tue, 6 Jun 2023 11:21:00 +0000 (13:21 +0200)] 
Update CHANGES.md

2 years agoMerge pull request #721 from zdohnal/cupsgetnameddest_crash
zdohnal [Tue, 6 Jun 2023 11:15:17 +0000 (13:15 +0200)] 
Merge pull request #721 from zdohnal/cupsgetnameddest_crash

dest.c: Call cupsEnumDests() only if data.name is not NULL (fixes #719)

2 years agoFix indentation 721/head
Zdenek Dohnal [Tue, 6 Jun 2023 08:52:35 +0000 (10:52 +0200)] 
Fix indentation

2 years agodest.c: Call cupsEnumDests() only if data.name is not NULL (fixes #719)
Zdenek Dohnal [Tue, 6 Jun 2023 08:45:37 +0000 (10:45 +0200)] 
dest.c: Call cupsEnumDests() only if data.name is not NULL (fixes #719)

Fixes regression created by #452 - in case there is no default
destination and `cupsGetNamedDest()` is called to get one (by calling it
with argument `name` as NULL), the function crashes.

It happens because we try to look for the default printer on the network
(where we access `data.name`, which is NULL, in callback), but we never
found out the printer's name.

Original fix by Emilio Cobos Alvarez.

2 years agoPrep CUPS 2.5 development.
Michael R Sweet [Fri, 2 Jun 2023 14:10:02 +0000 (10:10 -0400)] 
Prep CUPS 2.5 development.

2 years agoMerge pull request #716 from 10ne1/master
Michael R Sweet [Fri, 2 Jun 2023 13:59:32 +0000 (09:59 -0400)] 
Merge pull request #716 from 10ne1/master

config-scripts/cups-common.m4: fix error message typo

2 years agoconfig-scripts/cups-common.m4: fix error message typo 716/head
Adrian Ratiu [Wed, 29 Mar 2023 19:19:31 +0000 (22:19 +0300)] 
config-scripts/cups-common.m4: fix error message typo

$COMPONENT should be $COMPONENTS to properly print
the bad build component, otherwise it's empty.

2 years agoUpdate CHANGES.md for next release
Zdenek Dohnal [Thu, 1 Jun 2023 15:55:29 +0000 (17:55 +0200)] 
Update CHANGES.md for next release

2 years agoRemove 2.4.4 from CHANGES.md for now v2.4.3
Zdenek Dohnal [Thu, 1 Jun 2023 15:08:01 +0000 (17:08 +0200)] 
Remove 2.4.4 from CHANGES.md for now

2 years ago2.4.3
Zdenek Dohnal [Thu, 1 Jun 2023 15:05:54 +0000 (17:05 +0200)] 
2.4.3

2 years agoMerge pull request #711 from zdohnal/Plombo-printer-conf-strings
Michael R Sweet [Thu, 1 Jun 2023 14:08:55 +0000 (10:08 -0400)] 
Merge pull request #711 from zdohnal/Plombo-printer-conf-strings

Save strings file path in printers.conf by Bryan Cain + feedback applied

2 years agoprinters.c: Set .strings file path if PPD cache is valid (fixes #710) 711/head
Zdenek Dohnal [Thu, 1 Jun 2023 13:57:36 +0000 (15:57 +0200)] 
printers.c: Set .strings file path if PPD cache is valid (fixes #710)