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

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