diff options
author | Till Kampetter <till.kampetter@gmail.com> | 2016-08-09 18:11:36 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2018-06-08 14:41:03 +0200 |
commit | b28d3b493025f9952fcc049bbebd45518c2238d8 (patch) | |
tree | fd4832738a05968e89e265f61e45985827fe3541 | |
parent | 1c9aacb0071bfd15a9b278e4339324345cf33b1b (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.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scheduler/cups-driverd.cxx b/scheduler/cups-driverd.cxx index 45e6e6557..3e9757146 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... */ |