Skip to content

Commit ed799a2

Browse files
Merge pull request #711 from zdohnal/Plombo-printer-conf-strings
Save strings file path in printers.conf by Bryan Cain + feedback applied
2 parents 425ba0f + a88956a commit ed799a2

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Changes in CUPS v2.4.3 (TBA)
1515
- Fixed a potential SNMP OID value overflow issue (Issue #431)
1616
- Fixed an OpenSSL certificate loading issue (Issue #465)
1717
- Fixed Brazilian Portuguese translations (Issue #288)
18+
- Fixed `cupsd` default keychain location when building with OpenSSL
19+
(Issue #529)
20+
- Fixed default color settings for CMYK printers as well (Issue #500)
1821
- Fixed duplicate PPD2IPP media-type names (Issue #688)
1922
- Fixed possible heap buffer overflow in `_cups_strlcpy()` (fixes CVE-2023-32324)
2023
- Fixed InputSlot heuristic for photo sizes smaller than 5x7" if there is no
@@ -25,9 +28,7 @@ Changes in CUPS v2.4.3 (TBA)
2528
- Fixed memory leaks in `create_local_bg_thread()` (Issue #466)
2629
- Fixed media size tolerance in `ippeveprinter` (Issue #487)
2730
- Fixed passing command name without path into `ippeveprinter` (Issue #629)
28-
- Fixed `cupsd` default keychain location when building with OpenSSL
29-
(Issue #529)
30-
- Fixed default color settings for CMYK printers as well (Issue #500)
31+
- Fixed saving strings file path in `printers.conf` (Issue #710)
3132
- Fixed TLS certificate generation bugs (Issue #652)
3233
- `ippDeleteValues` would not delete the last value (Issue #556)
3334
- Ignore some of IPP defaults if the application sends its PPD alternative

scheduler/printers.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3935,6 +3935,16 @@ load_ppd(cupsd_printer_t *p) /* I - Printer */
39353935
* Loaded successfully!
39363936
*/
39373937

3938+
/*
3939+
* Set `strings` (source for printer-strings-uri IPP attribute)
3940+
* if printer's .strings file with localization exists.
3941+
*/
3942+
3943+
if (!access(strings_name, R_OK))
3944+
cupsdSetString(&p->strings, strings_name);
3945+
else
3946+
cupsdClearString(&p->strings);
3947+
39383948
return;
39393949
}
39403950
}

0 commit comments

Comments
 (0)