summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Kampetter <till.kampetter@gmail.com>2016-08-09 18:11:36 +0200
committerDidier Raboud <odyx@debian.org>2021-05-27 08:48:45 +0200
commit2e93e24da0d02e1988d1084ad2b3fef894fe0f76 (patch)
tree64cab350da8fcc936694e8ce8d3b10ac3437a6b6
parent513c58765902fcf40218092d90323f9ddae1607b (diff)
Keep foomatic PPDs "(recommended)" stanzas in NickNames
Bug-Upstream: https://github.com/OpenPrinting/cups/pull/33
-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 85516eb8c..874eb3c07 100644
--- a/scheduler/cups-driverd.cxx
+++ b/scheduler/cups-driverd.cxx
@@ -240,7 +240,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 */
/*
@@ -279,15 +278,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...
*/