Blame SOURCES/0001-cups-browsed-Always-save-.-default-option-entries-fr.patch

1b2345
From 144322be6e06ff12f101fc35e472d62978861e28 Mon Sep 17 00:00:00 2001
1b2345
From: Till Kamppeter <till.kamppeter@gmail.com>
1b2345
Date: Thu, 15 Apr 2021 14:26:44 +0200
1b2345
Subject: [PATCH] cups-browsed: Always save "...-default" option entries from
1b2345
 printers.conf
1b2345
1b2345
(cherry picked from commit cdd61132e1719a88dd8006c65e8e260c1aaa02e4)
1b2345
---
1b2345
 utils/cups-browsed.c | 4 +---
1b2345
 2 files changed, 4 insertions(+), 3 deletions(-)
1b2345
1b2345
diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
1b2345
index bffd1e09..0c335055 100644
1b2345
--- a/utils/cups-browsed.c
1b2345
+++ b/utils/cups-browsed.c
1b2345
@@ -5648,9 +5648,7 @@ record_printer_options(const char *printer) {
1b2345
 	       strcasecmp(key + strlen(key) - strlen(*ptr) + 1, *ptr + 1) == 0))
1b2345
 	    break;
1b2345
 	if (*ptr != NULL) {
1b2345
-	  if (strcasecmp(key, CUPS_BROWSED_DEST_PRINTER "-default") != 0 &&
1b2345
-	      (ppdname == NULL ||
1b2345
-	       strncasecmp(key + strlen(key) - 8, "-default", 8))) {
1b2345
+	  if (strcasecmp(key, CUPS_BROWSED_DEST_PRINTER "-default") != 0) {
1b2345
 	    ippAttributeString(attr, buf, sizeof(buf));
1b2345
 	    buf[sizeof(buf) - 1] = '\0';
1b2345
 	    c = buf;
1b2345
-- 
1b2345
2.30.2
1b2345