]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
17 months agoAdd unidir USB quirk for Oki 407 886/head
Zdenek Dohnal [Tue, 6 Feb 2024 13:58:11 +0000 (14:58 +0100)] 
Add unidir USB quirk for Oki 407

Fixes #877

18 months agoMerge pull request #881 from OpenPrinting/dependabot/github_actions/microsoft/setup...
Michael R Sweet [Thu, 1 Feb 2024 15:05:42 +0000 (10:05 -0500)] 
Merge pull request #881 from OpenPrinting/dependabot/github_actions/microsoft/setup-msbuild-2.0.0

build(deps): bump microsoft/setup-msbuild from 1.3.1 to 2.0.0

18 months agobuild(deps): bump microsoft/setup-msbuild from 1.3.1 to 2.0.0 881/head
dependabot[bot] [Thu, 1 Feb 2024 10:41:09 +0000 (10:41 +0000)] 
build(deps): bump microsoft/setup-msbuild from 1.3.1 to 2.0.0

Bumps [microsoft/setup-msbuild](https://github.com/microsoft/setup-msbuild) from 1.3.1 to 2.0.0.
- [Release notes](https://github.com/microsoft/setup-msbuild/releases)
- [Changelog](https://github.com/microsoft/setup-msbuild/blob/main/building-release.md)
- [Commits](https://github.com/microsoft/setup-msbuild/compare/v1.3.1...v2.0.0)

---
updated-dependencies:
- dependency-name: microsoft/setup-msbuild
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agoMirror fix from libcups.
Michael R Sweet [Wed, 31 Jan 2024 15:27:00 +0000 (10:27 -0500)] 
Mirror fix from libcups.

18 months agoRemove excess debugging (Issue #875)
Michael R Sweet [Thu, 25 Jan 2024 02:29:02 +0000 (21:29 -0500)] 
Remove excess debugging (Issue #875)

18 months agoCopy string copy/concat/format changes from libcups v3.
Michael R Sweet [Thu, 25 Jan 2024 02:22:55 +0000 (21:22 -0500)] 
Copy string copy/concat/format changes from libcups v3.

Remove all unnecessary string function checks.

Remove old snprintf emulation functions (now require C99 which always has it)

18 months agobackend/ipp.c: Fix printing jobs with long names on older IPP printers
zdohnal [Tue, 16 Jan 2024 12:27:10 +0000 (13:27 +0100)] 
backend/ipp.c: Fix printing jobs with long names on older IPP printers

On older printers (ones which don't support IPP operation Create-Job) we concatenate job number and title into one string, which we use as IPP attribute job-name. If the original title was almost 255 chars, the joining the strings will overflow maximal required length for this attribute, and Validate-Job fails.

We could check whether the string is longer than 255 and cut it, but I chose to shrink the buffer to 256, since we already use snprintf() which will cut the string and put null terminator for us.

Fixes #644

18 months agobackend/ipp.c: Fix printing jobs with long names on older IPP printers 866/head
Zdenek Dohnal [Tue, 16 Jan 2024 07:31:15 +0000 (08:31 +0100)] 
backend/ipp.c: Fix printing jobs with long names on older IPP printers

On older printers (ones which don't support IPP operation Create-Job)
we concatenate job number and title into one string, which we use as
IPP attribute job-name. If the original title was almost 255 chars,
the joining the strings will overflow maximal required length
for this attribute, and Validate-Job fails.

We could check whether the string is longer than 255 and cut it,
but I chose to shrink the buffer to 256, since we already use snprintf()
which will cut the string and put null terminator for us.

Fixes #644

18 months agobackend/ipp.c: Fix infinite loop with Kerberos
zdohnal [Mon, 15 Jan 2024 15:00:56 +0000 (16:00 +0100)] 
backend/ipp.c: Fix infinite loop with Kerberos

If IP address was used with Kerberos, IPP backend retried connection indefinitely. The fix is to abort when we find out hostname is an IP address and we require Kerberos.

Fixes #838

18 months agobackend/ipp.c: Fix infinite loop with Kerberos 864/head
Zdenek Dohnal [Mon, 15 Jan 2024 14:14:24 +0000 (15:14 +0100)] 
backend/ipp.c: Fix infinite loop with Kerberos

If IP address was used with Kerberos, IPP backend retried connection
indefinitely. The fix is to abort when we find out hostname is an IP
address and we require Kerberos.

Fixes #838

18 months agoUpdate CHANGES.md
Zdenek Dohnal [Mon, 15 Jan 2024 13:08:54 +0000 (14:08 +0100)] 
Update CHANGES.md

18 months agoMerge pull request #860 from ValdikSS/master
Michael R Sweet [Fri, 12 Jan 2024 21:49:40 +0000 (16:49 -0500)] 
Merge pull request #860 from ValdikSS/master

Report proper media-source-supported IPP field on numeric InputSlots

18 months agoFix whitespace error
Zdenek Dohnal [Fri, 12 Jan 2024 09:47:40 +0000 (10:47 +0100)] 
Fix whitespace error

18 months agoAdd/update copyrights
Zdenek Dohnal [Fri, 12 Jan 2024 08:02:01 +0000 (09:02 +0100)] 
Add/update copyrights

18 months agoFix print-scaling option support for IPP printers (Issue #862)
Michael R Sweet [Wed, 10 Jan 2024 20:42:16 +0000 (15:42 -0500)] 
Fix print-scaling option support for IPP printers (Issue #862)

18 months agoReport proper media-source-supported IPP field on numeric InputSlots. #859 860/head
ValdikSS [Tue, 9 Jan 2024 01:21:52 +0000 (04:21 +0300)] 
Report proper media-source-supported IPP field on numeric InputSlots. #859

Windows 11 version 22H2 build 22621.2861 silently fails to add Mopria
auto-discovered printer if it reports a number (a digit as a string)
in media-source-supported field.
If you try to add such a printer using modern control panel, it will
show endless "connecting…" message, and if you add it using old
control panel, it would be added "successfully", but under
"unrecognized" device type, and you won't be able to print on it.

Fix the issue by
    * By comparing also by human-readable InputSlot name
    * By mapping number to "tray-N" string

19 months agoFix CI for CUPS 2.5
zdohnal [Fri, 5 Jan 2024 06:21:13 +0000 (07:21 +0100)] 
Fix CI for CUPS 2.5

Fixing deadlock and infinite loop in `cups_enum_dests()` - more info in specific commits.

19 months agodnssd.c: Fix deadlock in `cups_enum_dests()` 857/head
Zdenek Dohnal [Thu, 4 Jan 2024 12:58:42 +0000 (13:58 +0100)] 
dnssd.c: Fix deadlock in `cups_enum_dests()`

Deadlock happens when we are about to destroy DNSSD struct by the end
of `cups_enum_dests()`. The main thread locks the mutex when the other
thread is in avahi poll callback at function `poll()` and unlocked the
mutex before - the other thread tries to lock the mutex once poll
timeout expires, but it cannot because it was locked by the main thread
and wait there. Meanwhile the main thread tries to cancel the other
thread, but the function where the other thread is not a cancellation
point, thus the cancel event is ignored and the main thread thread waits
indefinitely for the end of the other thread.

We can make the other thread asynchronous (which would cancel the thread
immediately) or release the mutex earlier in `cupsDNSSDDelete()`. The
commit does the latter.

Fixes CI for Linux

19 months agodest.c: Fix infinite loop in `cups_enum_dests()`
Zdenek Dohnal [Thu, 4 Jan 2024 12:33:04 +0000 (13:33 +0100)] 
dest.c: Fix infinite loop in `cups_enum_dests()`

Update remaining time after `usleep()`, otherwise there is no difference
in elapsed time, so `remaining` will never be less or equal to 0.

Fixes CI on Linux

19 months agoppd-emit.c: Update code style after new PR
Zdenek Dohnal [Thu, 4 Jan 2024 11:56:47 +0000 (12:56 +0100)] 
ppd-emit.c: Update code style after new PR

19 months agoUpdate CHANGES.md
Zdenek Dohnal [Thu, 4 Jan 2024 11:50:48 +0000 (12:50 +0100)] 
Update CHANGES.md

19 months agoppd-emit.c: Fix SEGV in 'ppdEmitString()'
zdohnal [Thu, 4 Jan 2024 09:53:05 +0000 (10:53 +0100)] 
ppd-emit.c: Fix SEGV in 'ppdEmitString()'

When using testppd.c as a harness, a fuzzer found a way to call ppdPageSize() with NULL return value.
This caused a segmentation fault because the size structure, which is used by values[pos], was assigned a NULL value.
To avoid this, we need to add a NULL value check for the size structure, free allocated memory, and return NULL.

Fixes #849

19 months agoupdate code style #850 850/head
Кирилл Фурман [Wed, 3 Jan 2024 06:53:54 +0000 (09:53 +0300)] 
update code style #850

19 months agoMerge branch 'OpenPrinting:master' into master
Kirill [Wed, 3 Jan 2024 06:43:39 +0000 (09:43 +0300)] 
Merge branch 'OpenPrinting:master' into master

19 months agoMerge pull request #854 from OpenPrinting/dependabot/github_actions/github/codeql...
Michael R Sweet [Mon, 1 Jan 2024 13:00:40 +0000 (08:00 -0500)] 
Merge pull request #854 from OpenPrinting/dependabot/github_actions/github/codeql-action-3

Bump github/codeql-action from 2 to 3

19 months agoBump github/codeql-action from 2 to 3 854/head
dependabot[bot] [Mon, 1 Jan 2024 10:45:37 +0000 (10:45 +0000)] 
Bump github/codeql-action from 2 to 3

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
19 months agoUpdate CUPS programming manual for some of the new APIs and recommendations.
Michael R Sweet [Sun, 31 Dec 2023 14:49:03 +0000 (09:49 -0500)] 
Update CUPS programming manual for some of the new APIs and recommendations.

19 months agoFinal cleanup for 'make unittests' to be separate from 'make test' (Issue #612)
Michael R Sweet [Fri, 29 Dec 2023 14:16:00 +0000 (09:16 -0500)] 
Final cleanup for 'make unittests' to be separate from 'make test' (Issue #612)

19 months agoAdd media-source to media-col-ready for iOS 17+ (Issue #738)
Michael R Sweet [Fri, 29 Dec 2023 14:02:57 +0000 (09:02 -0500)] 
Add media-source to media-col-ready for iOS 17+ (Issue #738)

19 months agoClean up.
Michael R Sweet [Wed, 27 Dec 2023 21:47:16 +0000 (16:47 -0500)] 
Clean up.

19 months agoUpdate mailing list info.
Michael R Sweet [Wed, 27 Dec 2023 16:17:02 +0000 (11:17 -0500)] 
Update mailing list info.

19 months agoppd-emit.c: Fix SEGV in 'ppdEmitString()'
Kirill Furman [Wed, 27 Dec 2023 13:34:24 +0000 (16:34 +0300)] 
ppd-emit.c: Fix SEGV in 'ppdEmitString()'
When using testppd.c as a harness, a fuzzer found a way to call
ppdPageSize() with NULL return value. This caused a segmentation fault
because the size structure, which is used by values[pos],
was assigned a NULL value. To avoid this, we need to add a
NULL value check for the size structure, free allocated memory,
and return NULL.

Fixes #849

19 months agoChangelog.
Michael R Sweet [Wed, 27 Dec 2023 03:13:57 +0000 (22:13 -0500)] 
Changelog.

19 months agoUpdate documentation.
Michael R Sweet [Thu, 5 Oct 2023 15:55:02 +0000 (11:55 -0400)] 
Update documentation.

19 months agoMerge pull request #848 from ValdikSS/add-model-filter
Michael R Sweet [Tue, 26 Dec 2023 18:58:30 +0000 (13:58 -0500)] 
Merge pull request #848 from ValdikSS/add-model-filter

Web Ui: add filter by printer model in PPD driver list

19 months agoWeb Ui: add filter by printer model in PPD driver list 848/head
ValdikSS [Tue, 26 Dec 2023 01:52:53 +0000 (04:52 +0300)] 
Web Ui: add filter by printer model in PPD driver list

Implement JavaScript filter for the PPD list in "Add Printer"
and "Modify Printer" dialogs.

Sometimes there are too many models in the list that it's hard to find
the one you want.

19 months agoMerge pull request #846 from ValdikSS/tag-fix
Michael R Sweet [Tue, 26 Dec 2023 16:06:00 +0000 (11:06 -0500)] 
Merge pull request #846 from ValdikSS/tag-fix

Close OPTION HTML tag in printer driver list template

19 months agoMerge pull request #847 from ValdikSS/ru-fix
Michael R Sweet [Tue, 26 Dec 2023 15:56:05 +0000 (10:56 -0500)] 
Merge pull request #847 from ValdikSS/ru-fix

Web Ui: Fix Russian translation in choose-model template

19 months agoWeb Ui: Fix Russian translation in choose-model template 847/head
ValdikSS [Tue, 26 Dec 2023 02:00:54 +0000 (05:00 +0300)] 
Web Ui: Fix Russian translation in choose-model template

19 months agoClose OPTION HTML tag in printer driver list template 846/head
ValdikSS [Tue, 26 Dec 2023 00:43:34 +0000 (03:43 +0300)] 
Close OPTION HTML tag in printer driver list template

The tag was never closed which produced invalid HTML.
Luckily, this apparently has worked in all browsers.

19 months agoUpdate CHANGES.md
Zdenek Dohnal [Fri, 15 Dec 2023 10:02:31 +0000 (11:02 +0100)] 
Update CHANGES.md

19 months agohttpAddrConnect2: Check for error if POLLHUP is in valid revents
zdohnal [Thu, 14 Dec 2023 16:33:40 +0000 (17:33 +0100)] 
httpAddrConnect2: Check for error if POLLHUP is in valid revents

Some Linux kernel versions put POLLOUT|POLLHUP into revents when client tries to connect with httpAddrConnect2(), which makes the connection fail.
Let's check the option SO_ERROR before scratching the attempt - if there is no error, remove POLLHUP from revents.

I've re-purposed previously Solaris-only code to be used everywhere if the conditions are met - this should prevent bigger delays than necessary.

Slightly different issue than #827, but with similar symptoms (kernel sending POLLOUT|POLLHUP).

19 months agohttpAddrConnect2: Check for error if POLLHUP is in valid revents 839/head
Zdenek Dohnal [Thu, 14 Dec 2023 08:37:22 +0000 (09:37 +0100)] 
httpAddrConnect2: Check for error if POLLHUP is in valid revents

Some Linux kernel versions put POLLOUT|POLLHUP into revents when client tries to connect with httpAddrConnect2(), which makes the connection fail.
Let's check the option SO_ERROR before scratching the attempt - if there is no error, remove POLLHUP from revents.

I've re-purposed previously Solaris-only code to be used everywhere if the conditions are met - this should prevent bigger delays than necessary.

Slightly different issue than #827, but with similar symptoms (kernel sending POLLOUT|POLLHUP).

20 months agoscheduler: Fix build failure on Linux with '-Werror -Wall'
zdohnal [Wed, 29 Nov 2023 14:07:18 +0000 (15:07 +0100)] 
scheduler: Fix build failure on Linux with '-Werror -Wall'

The string which we add into array stays const after fixing #814 (because strdup(), which caused memory leak returned char *) and compiler fails because of it if it runs with '-Werror -Wall'.

20 months agoUpdate CHANGES.md
Zdenek Dohnal [Mon, 27 Nov 2023 11:52:01 +0000 (12:52 +0100)] 
Update CHANGES.md

20 months agoscheduler: Set reasons in cupsdSetJobState only if we call finalize_job later
zdohnal [Mon, 27 Nov 2023 09:37:18 +0000 (10:37 +0100)] 
scheduler: Set reasons in cupsdSetJobState only if we call finalize_job later

Before the fix, every successfully printed jobs ended up with 'processing-to-stop-point' as the last reasons message.

Together with #830 fixes #828 .

20 months agoUpdate CHANGES.md
Zdenek Dohnal [Mon, 27 Nov 2023 09:13:39 +0000 (10:13 +0100)] 
Update CHANGES.md

20 months agoraster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer
zdohnal [Mon, 27 Nov 2023 09:11:52 +0000 (10:11 +0100)] 
raster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer

Fuzzer using _cupsRasterExecPS() found a way how to pass NULL into scan_ps(), causing crash - we have to sanitize the argument for NULL to fix it.

Fixes #831

20 months agoscheduler: Fix build failure on Linux with '-Werror -Wall' 835/head
Zdenek Dohnal [Mon, 27 Nov 2023 09:05:55 +0000 (10:05 +0100)] 
scheduler: Fix build failure on Linux with '-Werror -Wall'

The string which we add into array stays `const` after fixing #814
(because `strdup()`, which caused memory leak returned `char *`)
and compiler fails because of it if it runs with '-Werror -Wall'.

20 months agoraster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer 834/head
Zdenek Dohnal [Fri, 24 Nov 2023 10:46:53 +0000 (11:46 +0100)] 
raster-interpreter.c: Fix crash in 'scan_ps()' found by fuzzer

Fuzzer using `_cupsRasterExecPS()` found a way how to pass NULL into
`scan_ps()`, causing crash - we have to sanitize the argument for NULL
to fix it.

Fixes #831

20 months agoUpdate CHANGES.md
Zdenek Dohnal [Fri, 24 Nov 2023 06:32:28 +0000 (07:32 +0100)] 
Update CHANGES.md

20 months agolpstat.c: Implement successful filter for jobs
zdohnal [Fri, 24 Nov 2023 06:26:31 +0000 (07:26 +0100)] 
lpstat.c: Implement successful filter for jobs

Introduce a new argument value 'successful' in lpstat to get jobs which completed successfully without introducing a new IPP value for IPP attribute 'which-jobs'

Together with #832 fixes #828 .

20 months agoscheduler: Set reasons in 'cupsdSetJobState' only if we call finalize_job() later 832/head
Zdenek Dohnal [Fri, 24 Nov 2023 06:19:20 +0000 (07:19 +0100)] 
scheduler: Set reasons in 'cupsdSetJobState' only if we call finalize_job() later

20 months agoscheduler/colorman.c: Fix memory leak during creating color profile
zdohnal [Fri, 24 Nov 2023 05:08:51 +0000 (06:08 +0100)] 
scheduler/colorman.c: Fix memory leak during creating color profile

Since the array profiles is set to use strdup() as a copy function, we don't have to use strdup() on the element which is passed as parameter of cupsArrayAdd() - using the strdup() as we used till now causes memory leak.

Reproducer is the same as #813 .

20 months agoscheduler: Report warning if destination doesn't follow IPP spec
zdohnal [Thu, 23 Nov 2023 15:42:09 +0000 (16:42 +0100)] 
scheduler: Report warning if destination doesn't follow IPP spec

Report warning if the destination can't answer to IPP request containing 'all,media-col-database' combination in one response, which is against RFC. This way we can find out about more devices which have those firmware issues.

20 months agoscheduler: Set reasons in cupsdSetJobState only if we call finalize_job later
Zdenek Dohnal [Thu, 23 Nov 2023 15:07:46 +0000 (16:07 +0100)] 
scheduler: Set reasons in cupsdSetJobState only if we call finalize_job later

20 months agoCheck for value, not name 830/head
Zdenek Dohnal [Thu, 23 Nov 2023 14:42:12 +0000 (15:42 +0100)] 
Check for value, not name

20 months agolpstat.c: Implement successful filter for jobs
Zdenek Dohnal [Thu, 23 Nov 2023 12:02:54 +0000 (13:02 +0100)] 
lpstat.c: Implement successful filter for jobs

20 months agoscheduler/ipp.c: Report warning if the destination can't do \'all,media-col-database... 829/head
Zdenek Dohnal [Thu, 16 Nov 2023 08:10:47 +0000 (09:10 +0100)] 
scheduler/ipp.c: Report warning if the destination can't do \'all,media-col-database\' together

20 months agoMerge branch 'master' into colorprofile-leak 814/head
zdohnal [Thu, 16 Nov 2023 07:39:57 +0000 (08:39 +0100)] 
Merge branch 'master' into colorprofile-leak

20 months agoAdd Weblate link and note for contributors.
Michael R Sweet [Tue, 7 Nov 2023 16:47:45 +0000 (11:47 -0500)] 
Add Weblate link and note for contributors.

21 months agoMerge pull request #816 from ppekala/master
zdohnal [Thu, 2 Nov 2023 06:01:24 +0000 (07:01 +0100)] 
Merge pull request #816 from ppekala/master

Fix broken bold tag

21 months agoFix broken bold tag 816/head
Paweł Pękala [Wed, 1 Nov 2023 20:21:59 +0000 (21:21 +0100)] 
Fix broken bold tag

21 months agoAdd Polish translation (Issue #803)
zdohnal [Wed, 1 Nov 2023 13:27:49 +0000 (14:27 +0100)] 
Add Polish translation (Issue #803)

Provided by Paweł Pękala - thank you very much!

21 months agoAdd translations for some backend strings 803/head
Paweł Pękala [Tue, 31 Oct 2023 15:56:05 +0000 (16:56 +0100)] 
Add translations for some backend strings

21 months agoUpdate CHANGES.md
Zdenek Dohnal [Mon, 30 Oct 2023 10:32:07 +0000 (11:32 +0100)] 
Update CHANGES.md

21 months agoscheduler/job.c: unload job before freeing job history in cupsdDeletejob()
zdohnal [Mon, 30 Oct 2023 10:29:52 +0000 (11:29 +0100)] 
scheduler/job.c: unload job before freeing job history in cupsdDeletejob()

With "PreserveJobHistory Off", LogLevel not set to debug (or debug2), and "LogDebugHistory 200" (the default), cupsdDeleteJob() frees the job history and then unloads the job. However, unload_job() calls cupsdLogJob() which re-creates the job history and puts "Unloading..." into it because level (debug) is greater than LogLevel (warn) and LogDebugHistory is set to 200 messages by default. Unused (and unreachable) job history is left behind, resulting in a memory leak.

The solution seems to be to unload the job before freeing the job history.

21 months agoscheduler/colorman.c: Fix memory leak during creating color profile
Zdenek Dohnal [Mon, 30 Oct 2023 09:21:47 +0000 (10:21 +0100)] 
scheduler/colorman.c: Fix memory leak during creating color profile

Since the array `profiles` is set to use `strdup()` as a copy function, we
don't have to use `strdup()` on the element which is passed as parameter
of `cupsArrayAdd()` - using the `strdup()` as we used till now causes
memory leak.

Reproducer is the same as https://github.com/OpenPrinting/cups/pull/813
.

21 months agoscheduler/job.c: unload job before freeing job history in cupsdDeleteJob() 813/head
Bryan Mason [Fri, 27 Oct 2023 18:37:02 +0000 (11:37 -0700)] 
scheduler/job.c: unload job before freeing job history in cupsdDeleteJob()

With "PreserveJobHistory Off", LogLevel not set to debug (or debug2),
and "LogDebugHistory 200" (the default), cupsdDeleteJob() frees the
job history and then unloads the job.  However, unload_job() calls
cupsdLogJob() which re-creates the job history and puts "Unloading..."
into it because level (debug) is greater than LogLevel (warn) and
LogDebugHistory is set to 200 messages by default.  Unused (and
unreachable) job history is left behind, resulting in a memory leak.

21 months agocups/dest.c: Raise timeout _CUPS_DNSSD_GET_DESTS
zdohnal [Wed, 25 Oct 2023 06:07:43 +0000 (08:07 +0200)] 
cups/dest.c: Raise timeout _CUPS_DNSSD_GET_DESTS

The current timeout is not able to list all network devices if there are many IPP services on mDNS (the tested number is 165 services).

Raising the timeout to 1s does not slow libcups if there are less services (Avahi returns earlier) or if Avahi does not run on the system (libcups cannot create an Avahi client in that case), and provides time frame for getting reasonable amount of IPP services (big enterprise servers will use permanent queues and printer profiles than mDNS).

Fixes #751

21 months agoFix 'make install' for base.h (Issue #809)
Michael R Sweet [Tue, 24 Oct 2023 13:39:12 +0000 (09:39 -0400)] 
Fix 'make install' for base.h (Issue #809)

21 months agocups/dest.c: Raise timeout _CUPS_DNSSD_GET_DESTS 806/head
Zdenek Dohnal [Mon, 23 Oct 2023 07:40:44 +0000 (09:40 +0200)] 
cups/dest.c: Raise timeout _CUPS_DNSSD_GET_DESTS

The current timeout is not able to list all network devices if there are
many IPP services on mDNS (the tested number is 165 services).

Raising the timeout to 1s does not slow libcups if there are less
services (Avahi returns earlier) or if Avahi does not run on the system
(libcups cannot create an Avahi client in that case), and provides time
frame for getting reasonable amount of IPP services (big enterprise
servers will use permanent queues and printer profiles than mDNS).

Fixes #751

21 months agoAdd webui Polish translation
Paweł Pękala [Fri, 20 Oct 2023 13:57:57 +0000 (15:57 +0200)] 
Add webui Polish translation

21 months agoFix test commands to get proper date and time at start and end of tests.
Michael R Sweet [Wed, 18 Oct 2023 16:30:09 +0000 (12:30 -0400)] 
Fix test commands to get proper date and time at start and end of tests.

21 months agoFix httpAssembleURI to not add the standard port number.
Michael R Sweet [Wed, 18 Oct 2023 16:15:30 +0000 (12:15 -0400)] 
Fix httpAssembleURI to not add the standard port number.

21 months agoFix file API unit tests.
Michael R Sweet [Wed, 18 Oct 2023 15:43:06 +0000 (11:43 -0400)] 
Fix file API unit tests.

21 months agoFix Windows builds (Issue #801) 736/head
Michael R Sweet [Tue, 17 Oct 2023 16:40:08 +0000 (12:40 -0400)] 
Fix Windows builds (Issue #801)

22 months agoCUPS_PRINTER_xxx -> CUPS_PTYPE_xxx with source compatibility changes.
Michael R Sweet [Thu, 5 Oct 2023 15:52:42 +0000 (11:52 -0400)] 
CUPS_PRINTER_xxx -> CUPS_PTYPE_xxx with source compatibility changes.

Add CUPS_PTYPE_FOLD to support fold finishing.

22 months agoMirror fix for ECDSA signatures with GNU TLS for JWT.
Michael R Sweet [Wed, 4 Oct 2023 17:20:21 +0000 (13:20 -0400)] 
Mirror fix for ECDSA signatures with GNU TLS for JWT.

22 months agoCHANGES.md: Mention several hash support removals
Zdenek Dohnal [Wed, 4 Oct 2023 07:27:24 +0000 (09:27 +0200)] 
CHANGES.md: Mention several hash support removals

22 months agoMerge pull request #792 from OpenPrinting/dependabot/github_actions/actions/checkout-4
Michael R Sweet [Mon, 2 Oct 2023 09:12:05 +0000 (05:12 -0400)] 
Merge pull request #792 from OpenPrinting/dependabot/github_actions/actions/checkout-4

Bump actions/checkout from 3 to 4

22 months agoBump actions/checkout from 3 to 4 792/head
dependabot[bot] [Sun, 1 Oct 2023 10:06:43 +0000 (10:06 +0000)] 
Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
22 months agoFix indentation
Zdenek Dohnal [Wed, 20 Sep 2023 12:44:17 +0000 (14:44 +0200)] 
Fix indentation

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.