summaryrefslogtreecommitdiff
path: root/0001-cups-browsed-Always-save-.-default-option-entries-fr.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:12:05 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:12:05 +0000
commit4c3ea8a8d77795b50911837e21f52ca4beaca442 (patch)
treeaddbbe7d71aad22b8223abcedca6729e61558286 /0001-cups-browsed-Always-save-.-default-option-entries-fr.patch
parent2a5d3f517196a968f9cca70f9e118478798f4c8d (diff)
automatic import of cups-filtersopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-cups-browsed-Always-save-.-default-option-entries-fr.patch')
-rw-r--r--0001-cups-browsed-Always-save-.-default-option-entries-fr.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-cups-browsed-Always-save-.-default-option-entries-fr.patch b/0001-cups-browsed-Always-save-.-default-option-entries-fr.patch
new file mode 100644
index 0000000..98fe409
--- /dev/null
+++ b/0001-cups-browsed-Always-save-.-default-option-entries-fr.patch
@@ -0,0 +1,29 @@
+From 144322be6e06ff12f101fc35e472d62978861e28 Mon Sep 17 00:00:00 2001
+From: Till Kamppeter <till.kamppeter@gmail.com>
+Date: Thu, 15 Apr 2021 14:26:44 +0200
+Subject: [PATCH] cups-browsed: Always save "...-default" option entries from
+ printers.conf
+
+(cherry picked from commit cdd61132e1719a88dd8006c65e8e260c1aaa02e4)
+---
+ utils/cups-browsed.c | 4 +---
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
+index bffd1e09..0c335055 100644
+--- a/utils/cups-browsed.c
++++ b/utils/cups-browsed.c
+@@ -5648,9 +5648,7 @@ record_printer_options(const char *printer) {
+ strcasecmp(key + strlen(key) - strlen(*ptr) + 1, *ptr + 1) == 0))
+ break;
+ if (*ptr != NULL) {
+- if (strcasecmp(key, CUPS_BROWSED_DEST_PRINTER "-default") != 0 &&
+- (ppdname == NULL ||
+- strncasecmp(key + strlen(key) - 8, "-default", 8))) {
++ if (strcasecmp(key, CUPS_BROWSED_DEST_PRINTER "-default") != 0) {
+ ippAttributeString(attr, buf, sizeof(buf));
+ buf[sizeof(buf) - 1] = '\0';
+ c = buf;
+--
+2.30.2
+