summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kampetter <till.kampetter@gmail.com>2016-08-09 18:11:36 +0200
committerDidier Raboud <odyx@debian.org>2017-08-28 15:00:03 +0200
commit1b4f0a67bc46606b06e86050f2d015eadbb21bb4 (patch)
tree208e492d9fbe594e69cefc230ba1bf257ce6e5c4
parentb37c5f8eab472e650412dd961b88b2816050f8dd (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 903091129..5d3ddb6d4 100644
--- a/scheduler/cups-driverd.cxx
+++ b/scheduler/cups-driverd.cxx
@@ -246,7 +246,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 */
/*
@@ -285,15 +284,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...
*/