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

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