Skip to content

Commit

Permalink
Merge pull request #711 from zdohnal/Plombo-printer-conf-strings
Browse files Browse the repository at this point in the history
Save strings file path in printers.conf by Bryan Cain + feedback applied
  • Loading branch information
michaelrsweet authored Jun 1, 2023
2 parents 425ba0f + a88956a commit ed799a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Changes in CUPS v2.4.3 (TBA)
- Fixed a potential SNMP OID value overflow issue (Issue #431)
- Fixed an OpenSSL certificate loading issue (Issue #465)
- Fixed Brazilian Portuguese translations (Issue #288)
- Fixed `cupsd` default keychain location when building with OpenSSL
(Issue #529)
- Fixed default color settings for CMYK printers as well (Issue #500)
- Fixed duplicate PPD2IPP media-type names (Issue #688)
- Fixed possible heap buffer overflow in `_cups_strlcpy()` (fixes CVE-2023-32324)
- Fixed InputSlot heuristic for photo sizes smaller than 5x7" if there is no
Expand All @@ -25,9 +28,7 @@ Changes in CUPS v2.4.3 (TBA)
- Fixed memory leaks in `create_local_bg_thread()` (Issue #466)
- Fixed media size tolerance in `ippeveprinter` (Issue #487)
- Fixed passing command name without path into `ippeveprinter` (Issue #629)
- Fixed `cupsd` default keychain location when building with OpenSSL
(Issue #529)
- Fixed default color settings for CMYK printers as well (Issue #500)
- Fixed saving strings file path in `printers.conf` (Issue #710)
- Fixed TLS certificate generation bugs (Issue #652)
- `ippDeleteValues` would not delete the last value (Issue #556)
- Ignore some of IPP defaults if the application sends its PPD alternative
Expand Down
10 changes: 10 additions & 0 deletions scheduler/printers.c
Original file line number Diff line number Diff line change
Expand Up @@ -3935,6 +3935,16 @@ load_ppd(cupsd_printer_t *p) /* I - Printer */
* Loaded successfully!
*/

/*
* Set `strings` (source for printer-strings-uri IPP attribute)
* if printer's .strings file with localization exists.
*/

if (!access(strings_name, R_OK))
cupsdSetString(&p->strings, strings_name);
else
cupsdClearString(&p->strings);

return;
}
}
Expand Down

0 comments on commit ed799a2

Please sign in to comment.