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

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