]>
git.ipfire.org Git - thirdparty/cups.git/log
Benjamin Gordon [Fri, 2 Dec 2022 17:22:09 +0000 (10:22 -0700)]
Update InputSlot selection for photo sizes (fixes #569)
_ppdCacheGetInputSlot specifically requests the photo tray for paper
sizes up to 5x7" if the client hasn't specified a media-source. This
can fail if the photo tray is physically smaller than 5x7 (for example,
L-sized).
Instead of explicitly requesting the photo tray, try to request "auto"
and fall back to "photo" if the printer doesn't provide that as an
option.
Signed-off-by: Benjamin Gordon <bmgordon@chromium.org>
Michael R Sweet [Fri, 2 Dec 2022 10:35:22 +0000 (05:35 -0500)]
Merge pull request #567 from AtariDreams/casts
Remove pointless casts
Michael R Sweet [Fri, 2 Dec 2022 10:32:59 +0000 (05:32 -0500)]
Merge pull request #568 from AtariDreams/auth-ingo
Fix compiler warnings about non-null and casting
Rose [Thu, 1 Dec 2022 21:32:14 +0000 (16:32 -0500)]
Fix compiler warnings about non-null and casting
Explicitly cast to unsigned char, and check for NULL before passing pointers to functions that expect nonnull.
Rose [Thu, 1 Dec 2022 16:58:17 +0000 (11:58 -0500)]
Remove pointless casts
These variables were already in the target type anyway, or implicitly converted to void *.
Michael R Sweet [Thu, 1 Dec 2022 23:39:02 +0000 (18:39 -0500)]
Fix minor cupsDir API issue on Windows (not setting S_IFREG flag for files)
Michael R Sweet [Thu, 1 Dec 2022 17:50:49 +0000 (12:50 -0500)]
Merge pull request #565 from AtariDreams/C2
Update config files to latest version
Michael R Sweet [Thu, 1 Dec 2022 17:49:21 +0000 (12:49 -0500)]
Merge pull request #566 from AtariDreams/strcmp
Change strncmp parameter
Rose [Thu, 1 Dec 2022 16:57:08 +0000 (11:57 -0500)]
Change strncmp parameter
Either the parameter being passed should be 6, not 7, because of the null terminator in the string literal, or strcmp should be used instead.
Rose [Thu, 1 Dec 2022 16:55:54 +0000 (11:55 -0500)]
Update config files to latest version
Michael R Sweet [Tue, 29 Nov 2022 16:56:04 +0000 (11:56 -0500)]
Bump versions for Windows.
Michael R Sweet [Sat, 26 Nov 2022 15:33:09 +0000 (10:33 -0500)]
Add unit test for ippDeleteValues.
Michael R Sweet [Sat, 26 Nov 2022 15:25:28 +0000 (10:25 -0500)]
Merge pull request #557 from sparik/fix-ippdelete
Fix ippDeleteValues corner case.
Michael R Sweet [Sat, 26 Nov 2022 15:17:39 +0000 (10:17 -0500)]
Fix parens.
Michael R Sweet [Sat, 26 Nov 2022 15:11:40 +0000 (10:11 -0500)]
Merge pull request #560 from AtariDreams/httpConnect
Replace deprecated httpConnect function with httpConnect2
Rose [Sat, 26 Nov 2022 14:56:52 +0000 (09:56 -0500)]
Replace deprecated httpConnect function with httpConnect2
Sparik Hayrapetyan [Fri, 25 Nov 2022 14:30:35 +0000 (15:30 +0100)]
Fix ippDeleteValues corner case.
Michael R Sweet [Tue, 22 Nov 2022 23:12:08 +0000 (18:12 -0500)]
Merge pull request #537 from AtariDreams/admin_util
Replace else-if with else
Rose [Thu, 17 Nov 2022 15:17:22 +0000 (10:17 -0500)]
Replace else-if with else
This is just silly otherwise and it is causing unneeded compiler warnings
Michael R Sweet [Tue, 22 Nov 2022 18:33:36 +0000 (13:33 -0500)]
Merge pull request #538 from AtariDreams/uid_t
Use uid_t to deal with uids instead of integers
Rose [Thu, 17 Nov 2022 15:23:26 +0000 (10:23 -0500)]
Use uid_t to deal with uids instead of integers
We can also use strtoul to convert strings since uid_t is unsigned.
Michael R Sweet [Tue, 22 Nov 2022 17:04:42 +0000 (12:04 -0500)]
Merge pull request #536 from AtariDreams/atoi
Avoid passing a constant to atoi
Rose [Thu, 17 Nov 2022 15:16:03 +0000 (10:16 -0500)]
Avoid passing a constant to atoi
Use strtol only if server_port is null rather than waste time putting "0" in atoi, which always comes out as 0
Michael R Sweet [Tue, 22 Nov 2022 16:45:24 +0000 (11:45 -0500)]
Merge pull request #519 from AtariDreams/trivial
Fix trivial deprecations
Rose [Fri, 4 Nov 2022 15:12:51 +0000 (11:12 -0400)]
Fix trivial deprecations
We should use SecTrustCopyCertificateChain and then access the CFArray instead of using the deprecated SecTrustGetCertificateCount
Use xpc_connection_send_message_with_reply_sync instead of xpc_connection_send_message_with_reply.
This also gives us the added benefit of not risking priority inversion, since xpc_connection_send_message_with_reply_sync takes care of that already.
Finally, use RtlGetVersion instead of deprecated GetVersionExA.
Michael R Sweet [Thu, 17 Nov 2022 12:15:24 +0000 (07:15 -0500)]
Merge pull request #530 from AtariDreams/Fixup-Mac
Update Xcode Project
Michael R Sweet [Thu, 17 Nov 2022 11:48:07 +0000 (06:48 -0500)]
Merge pull request #532 from AtariDreams/Mistake
[Mistake Bug-Fix]: Fix cupsfilter by setting both array elements to -1
Rose [Wed, 16 Nov 2022 21:38:17 +0000 (16:38 -0500)]
[Mistake Bug-Fix]: Fix cupsfilter by setting both array elements to -1
We mistakenly set filterfds[1 - current][0] = -1; twice instead of doing that and setting filterfds[1 - current][1] to -1 as well
Rose [Tue, 15 Nov 2022 18:25:38 +0000 (13:25 -0500)]
Update Xcode Project
Remove dead file references and enable Dead Code Removal.
Michael R Sweet [Wed, 9 Nov 2022 15:35:47 +0000 (10:35 -0500)]
Merge pull request #522 from AtariDreams/windows
Update regex to the modified rxspenser repo
Rose [Tue, 8 Nov 2022 16:52:46 +0000 (11:52 -0500)]
Update regex to the modified rxspenser repo
This repo was linked in the original repo as a newer version, with the current version being the original version that abandoned development 8 years ago.
Nothing has been changed outside of that source, which is from upstream.
zdohnal [Mon, 7 Nov 2022 13:37:30 +0000 (14:37 +0100)]
Merge pull request #520 from AtariDreams/typo
Fix typos
Rose [Sun, 6 Nov 2022 17:48:54 +0000 (12:48 -0500)]
Fix typos
Fix multiple typos that appear in the codebase.
No other changes
Michael R Sweet [Tue, 25 Oct 2022 17:02:20 +0000 (13:02 -0400)]
Merge pull request #503 from AtariDreams/z
Update toolset to v143
Michael R Sweet [Tue, 25 Oct 2022 17:01:12 +0000 (13:01 -0400)]
Merge pull request #505 from AtariDreams/GitHub
Update GitHub Actions Checkout API
Rose [Mon, 24 Oct 2022 16:39:06 +0000 (12:39 -0400)]
Update GitHub Actions Checkout API
The v2 API is deprecated. Update that and the setup-msbuild script used
Rose [Sat, 22 Oct 2022 19:27:18 +0000 (15:27 -0400)]
Update toolset to v143
This toolset is the latest version of the MSVC toolchain and should be used
Add conditional for different VS versions up until 2017
Zdenek Dohnal [Thu, 20 Oct 2022 10:37:34 +0000 (12:37 +0200)]
Update CHANGES.md
zdohnal [Thu, 20 Oct 2022 10:35:10 +0000 (12:35 +0200)]
Merge pull request #501 from yetamrra/mediasizes
Add missing registered media sizes to PWG mapping table
Benjamin Gordon [Wed, 19 Oct 2022 03:19:30 +0000 (21:19 -0600)]
Add missing registered media sizes to PWG mapping table
A number of sizes that were added to ipp-registrations.xml after the
initial PWG 5101.1-2002 document are not currently mapped. When these
sizes are mapped through a generated IPP Everywhere PPD and back to IPP
media size names, they get changed into auto-generated self-describing
names instead of the official registered names.
This change adds all the non-duplicate missing names. Most of them
don't have official MediaOptions keywords, so the PPD names are mapped
to dimensions. With the updated mapping table, all of these sizes can
roundtrip correctly.
This also fixes a missing unit and an incorrect name in two existing
mappings for oe photo sizes.
These entries were not added due to being duplicates of existing sizes:
* iso_id-3_88x125mm duplicates iso_b7_88x125mm.
* oe_photo-s10r_10x15in duplicates na_10x15_10x15in.
* prc_3_125x176mm duplicates iso_b6_125x176mm.
* om_postfix_114x229mm duplicates iso_c6c5_114x229mm.
* prc_10_324x458mm duplicates iso_c3_324x458mm.
* prc_5_110x220mm duplicates iso_dl_110x220mm.
Signed-off-by: Benjamin Gordon <bmgordon@chromium.org>
zdohnal [Mon, 3 Oct 2022 13:27:56 +0000 (15:27 +0200)]
Merge pull request #494 from AtariDreams/translation
Fix German translation
Rose [Sun, 2 Oct 2022 16:26:38 +0000 (12:26 -0400)]
Fix German translation
"Default pitch" is "Voreingestellte Gradation"
"Neigung" doesn't fit, since that just describes the tilting of something, "Gradation" with its description fits better for character sizes.
Michael R Sweet [Thu, 22 Sep 2022 16:41:52 +0000 (12:41 -0400)]
Potentially fix the last AIX configure bug (Issue #375)
Michael R Sweet [Thu, 22 Sep 2022 11:59:26 +0000 (07:59 -0400)]
Fix LibreSSL version in some VC projects.
Michael R Sweet [Thu, 22 Sep 2022 11:48:58 +0000 (07:48 -0400)]
Bump NuGet versions.
Michael R Sweet [Thu, 22 Sep 2022 11:47:15 +0000 (07:47 -0400)]
Remove debug code for cert/key paths.
Michael R Sweet [Wed, 21 Sep 2022 21:41:46 +0000 (17:41 -0400)]
Bump NuGet versions and pull in newer LibreSSL.
Michael R Sweet [Wed, 21 Sep 2022 18:32:33 +0000 (14:32 -0400)]
Map destination-uris to phone and faxPrefix options (Issue #459)
Michael R Sweet [Wed, 21 Sep 2022 17:25:46 +0000 (13:25 -0400)]
Add IPP FaxOut attributes and values for fax queues (Issue #459)
Zdenek Dohnal [Wed, 21 Sep 2022 15:41:35 +0000 (17:41 +0200)]
Update CHANGES.md
zdohnal [Wed, 21 Sep 2022 15:38:17 +0000 (17:38 +0200)]
Merge pull request #486 from zdohnal/ignore_default_values
scheduler/ipp.c: Ignore some more IPP defaults (fixes #484)
zdohnal [Wed, 21 Sep 2022 15:36:32 +0000 (17:36 +0200)]
Merge pull request #469 from zdohnal/create_local_leaks
scheduler/ipp.c: Fix memory leaks found during #466
Zdenek Dohnal [Tue, 20 Sep 2022 16:06:21 +0000 (18:06 +0200)]
Update CHANGES.md
Zdenek Dohnal [Tue, 20 Sep 2022 16:01:39 +0000 (18:01 +0200)]
scheduler/ipp.c: Ignore some more IPP defaults (fixes #484)
If the application sends PPD option, don't override it via IPP default
option.
Zdenek Dohnal [Tue, 20 Sep 2022 16:00:15 +0000 (18:00 +0200)]
scheduler: Fix memory leaks during create_local_bg_thread()
zdohnal [Tue, 20 Sep 2022 15:27:43 +0000 (17:27 +0200)]
Merge pull request #468 from zdohnal/mime_thread_synch
scheduler: Protect MimeDatabase from parallel access (fixes #466)
Michael R Sweet [Sat, 17 Sep 2022 21:46:00 +0000 (17:46 -0400)]
Merge pull request #479 from AtariDreams/HTTP_STATUS_OK
Replace (http_status_t)0 with appropriate HTTP_STATUS codes
Michael R Sweet [Fri, 16 Sep 2022 13:33:25 +0000 (09:33 -0400)]
Merge branch 'master' of https://github.com/openprinting/cups
Michael R Sweet [Fri, 16 Sep 2022 13:33:17 +0000 (09:33 -0400)]
Save Windows+OpenSSL work.
Zdenek Dohnal [Fri, 16 Sep 2022 05:28:37 +0000 (07:28 +0200)]
Fixed Brazilian Portuguese translations (fixes #482)
Michael R Sweet [Wed, 14 Sep 2022 21:59:25 +0000 (17:59 -0400)]
Use forward slashes for Windows home directory.
Michael R Sweet [Wed, 14 Sep 2022 21:29:10 +0000 (17:29 -0400)]
Add more debug printfs.
Michael R Sweet [Wed, 14 Sep 2022 21:20:59 +0000 (17:20 -0400)]
Add error reporting when cert/key cannot be used.
Michael R Sweet [Wed, 14 Sep 2022 20:34:31 +0000 (16:34 -0400)]
Enable TLS/1.3 support with OpenSSL/LibreSSL, otherwise current ChromeOS
doesn't work...
Rose [Mon, 12 Sep 2022 16:26:58 +0000 (12:26 -0400)]
Replace (http_status_t)0 correct HTTP_STATUS code
Michael R Sweet [Mon, 12 Sep 2022 17:51:35 +0000 (13:51 -0400)]
Merge pull request #480 from AtariDreams/SysEventPipes
SysEventPipes does not need to be cast to int since it is an integer already
Rose [Mon, 12 Sep 2022 16:32:24 +0000 (12:32 -0400)]
SysEventPipes does not need to be cast to int since it is an integer already.
Michael R Sweet [Mon, 12 Sep 2022 15:18:47 +0000 (11:18 -0400)]
Merge pull request #472 from AtariDreams/cupsd_kqueue_changes
Remove unused variable cupsd_kqueue_changes
Rose [Mon, 12 Sep 2022 14:52:19 +0000 (10:52 -0400)]
Remove unused variable cupsd_kqueue_changes
Michael R Sweet [Mon, 12 Sep 2022 14:32:10 +0000 (10:32 -0400)]
Bump NuGet version.
Michael R Sweet [Fri, 9 Sep 2022 23:25:43 +0000 (19:25 -0400)]
Fix certificate generation bugs that affect Chrome compatibility, among other things.
Zdenek Dohnal [Tue, 6 Sep 2022 14:04:43 +0000 (16:04 +0200)]
scheduler: Protect MimeDatabase from parallel access (fixes #466)
If multiple create_local_bg_thread threads are spawned, they can fight
over MimeDatabase (specifically over MimeDatabase->srcs array), ending
up in SIGSEGV if one thread uses the array, but the other deletes it.
I chose to use RW locks for protecting the pointer - IMHO we benefit
from multiple threads being able to read in parallel.
Michael R Sweet [Mon, 5 Sep 2022 13:20:03 +0000 (09:20 -0400)]
The OpenSSL code path wasn't loading the full certificate chain (Issue #465)
zdohnal [Fri, 26 Aug 2022 09:45:18 +0000 (11:45 +0200)]
Merge pull request #463 from zdohnal/actions_ubuntu22
github actions: Use Ubuntu 22.04 for Linux
Zdenek Dohnal [Fri, 26 Aug 2022 08:44:58 +0000 (10:44 +0200)]
github actions: Use Ubuntu 22.04 for Linux
Zdenek Dohnal [Fri, 26 Aug 2022 08:31:16 +0000 (10:31 +0200)]
scheduler/ipp.c: new lines for readability
Zdenek Dohnal [Fri, 26 Aug 2022 06:29:11 +0000 (08:29 +0200)]
Update CHANGES.md
zdohnal [Fri, 26 Aug 2022 06:01:26 +0000 (08:01 +0200)]
Merge pull request #451 from zdohnal/change_defaults
scheduler/ipp.c: Convert incoming ColorModel attribute
Zdenek Dohnal [Tue, 2 Aug 2022 08:38:21 +0000 (10:38 +0200)]
scheduler/ipp.c: Convert incoming ColorModel attribute
If a client uses PPD option ColorModel (which is converted into
attribute to be sent via IPP) for changing the default color option
(which happens via CUPS-Add-Modify-Printer operation), we have to
convert ColorModel into print-color-mode attribute, so the
print-color-mode-default attribute gets updated.
The change survives reboot because print-color-mode is saved as an
option in printer's entry in /etc/cups/printers.conf.
Michael R Sweet [Thu, 18 Aug 2022 12:20:30 +0000 (08:20 -0400)]
Update config.guess/sub to absolute latest from GNU Savannah config repo.
zdohnal [Tue, 16 Aug 2022 14:55:10 +0000 (16:55 +0200)]
Merge pull request #458 from zdohnal/lprm_segfault
berkeley/lprm.c: Report error if -P doesn't have destination
Zdenek Dohnal [Tue, 16 Aug 2022 11:36:32 +0000 (13:36 +0200)]
berkeley/lprm.c: Report error if -P doesn't have destination
Fixes #457
Zdenek Dohnal [Tue, 16 Aug 2022 07:12:34 +0000 (09:12 +0200)]
Update CHANGES.md
Till Kamppeter [Mon, 15 Aug 2022 18:14:12 +0000 (20:14 +0200)]
Merge pull request #456 from zdohnal/lpoptions_root
cups/dest.c: Write data into /etc/cups/lpoptions if we're root
Till Kamppeter [Mon, 15 Aug 2022 17:38:19 +0000 (19:38 +0200)]
Merge pull request #455 from zdohnal/default_temp_queue
cups/dest.c: Look for default printer on network as well
Zdenek Dohnal [Mon, 15 Aug 2022 15:38:12 +0000 (17:38 +0200)]
cups/dest.c: Write data into /etc/cups/lpoptions if we're root
Fixes #454 , the patch is created by Yair Yarom
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
1008053 ).
Zdenek Dohnal [Mon, 15 Aug 2022 14:28:56 +0000 (16:28 +0200)]
systemv/lpinfo.c: Remove username option from usage (Fixes #453)
Zdenek Dohnal [Mon, 15 Aug 2022 14:04:50 +0000 (16:04 +0200)]
cups/dest.c: Look for default printer on network as well
The current code of `cupsGetNamedDest()` doesn't look up on network for
a default printer. The result is a temporary queue cannot be set as a
default printer.
Fixes #452
Michael R Sweet [Wed, 10 Aug 2022 14:48:45 +0000 (10:48 -0400)]
Bump NuGet version.
Michael R Sweet [Wed, 10 Aug 2022 14:47:46 +0000 (10:47 -0400)]
Don't enable TLS 1.3 with OpenSSL yet.
zdohnal [Fri, 5 Aug 2022 04:43:47 +0000 (06:43 +0200)]
Merge pull request #442 from zdohnal/godex_quirk
Adds USB quirk for GoDEX label printers (fixes #440)
Zdenek Dohnal [Thu, 4 Aug 2022 13:43:08 +0000 (15:43 +0200)]
Adds USB quirk for GoDEX label printers (fixes #440)
Michael R Sweet [Fri, 29 Jul 2022 17:41:18 +0000 (13:41 -0400)]
Update NuGet/VC packages to use LibreSSL packages.
Michael R Sweet [Tue, 26 Jul 2022 11:39:41 +0000 (07:39 -0400)]
Remove unused/unshipped strings2po utility that has potential security issues.
Michael R Sweet [Mon, 25 Jul 2022 12:12:45 +0000 (08:12 -0400)]
Cleanup for libtool fixes (Issue #394)
Michael R Sweet [Mon, 25 Jul 2022 12:08:49 +0000 (08:08 -0400)]
Merge pull request #394 from orbea/libtool
config-scripts: Fix --enable-libtool-unsupported
Zdenek Dohnal [Mon, 25 Jul 2022 11:35:11 +0000 (13:35 +0200)]
Update CHANGES.md
zdohnal [Mon, 25 Jul 2022 11:32:14 +0000 (13:32 +0200)]
Merge pull request #436 from zdohnal/web_file_limit
CUPS Web UI: Raise the file limit (fixes #433)
Zdenek Dohnal [Mon, 25 Jul 2022 08:07:01 +0000 (10:07 +0200)]
CUPS Web UI: Raise the file limit (fixes #433)
Some PPD files are larger than the current limit and they don't reside
in directories handled by `cups-driverd`, so users have to add them via
Web UI. The limit is now 2 MiB, the same as in PAPPL.
Michael R Sweet [Wed, 20 Jul 2022 02:00:12 +0000 (22:00 -0400)]
Add length checks to avoid pointer wraparound (Issue #431)