summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kampetter <till.kampetter@gmail.com>2016-08-09 18:11:36 +0200
committerDidier Raboud <odyx@debian.org>2018-06-08 15:11:05 +0200
commitc5842f42fd332bd9a09003bb12522ce269e5a38a (patch)
treed483ae12a9ace9ae2e29269e90b00ddd1353611f
parent26b164635989c9de18114ba0393d1e179d15307c (diff)
CUPS removes the "(recommended)" comments of the NickNames of Foomatic PPDs when listing available PPDs. This patch removes this removal action.
Last-Update: 2015-02-10 Patch-Name: reactivate_recommended_driver.patch
-rw-r--r--scheduler/cups-driverd.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/scheduler/cups-driverd.cxx b/scheduler/cups-driverd.cxx
index 657eee0a0..f9a142fb9 100644
--- a/scheduler/cups-driverd.cxx
+++ b/scheduler/cups-driverd.cxx
@@ -242,7 +242,6 @@ add_ppd(const char *filename, /* I - PPD filename */
const char *scheme) /* I - PPD scheme */
{
ppd_info_t *ppd; /* PPD */
- char *recommended; /* Foomatic driver string */
/*
@@ -281,15 +280,6 @@ add_ppd(const char *filename, /* I - PPD filename */
strlcpy(ppd->record.scheme, scheme, sizeof(ppd->record.scheme));
/*
- * Strip confusing (and often wrong) "recommended" suffix added by
- * Foomatic drivers...
- */
-
- if ((recommended = strstr(ppd->record.make_and_model,
- " (recommended)")) != NULL)
- *recommended = '\0';
-
- /*
* Add the PPD to the PPD arrays...
*/