cups-filters/cups-filters-location.patch
2017-11-21 10:11:44 +01:00

25 lines
1.2 KiB
Diff

diff -up cups-filters-1.16.1/utils/cups-browsed.c.location cups-filters-1.16.1/utils/cups-browsed.c
--- cups-filters-1.16.1/utils/cups-browsed.c.location 2017-08-09 20:02:48.000000000 +0200
+++ cups-filters-1.16.1/utils/cups-browsed.c 2017-11-20 19:40:25.943791715 +0100
@@ -4472,6 +4472,9 @@ gboolean update_cups_queues(gpointer unu
IPP_PRINTER_IDLE);
/* ... and accepting jobs */
ippAddBoolean(request, IPP_TAG_PRINTER, "printer-is-accepting-jobs", 1);
+ /* Location */
+ ippAddString(request, IPP_TAG_PRINTER, IPP_TAG_TEXT,
+ "printer-location", NULL, p->location);
num_options = 0;
options = NULL;
/* Device URI: ipp(s)://<remote host>:631/printers/<remote queue>
@@ -4484,9 +4487,7 @@ gboolean update_cups_queues(gpointer unu
/* Description */
num_options = cupsAddOption("printer-info", p->info,
num_options, &options);
- /* Location */
- num_options = cupsAddOption("printer-location", p->location,
- num_options, &options);
+
/* Default option settings from printer entry */
for (i = 0; i < p->num_options; i ++)
if (strcasecmp(p->options[i].name, "printer-is-shared"))