Blame SOURCES/cups-dnssd-deviceid.patch

ce62dc
diff -up cups-2.1.4/backend/dnssd.c.dnssd-deviceid cups-2.1.4/backend/dnssd.c
ce62dc
--- cups-2.1.4/backend/dnssd.c.dnssd-deviceid	2016-06-15 14:36:19.922353606 +0200
ce62dc
+++ cups-2.1.4/backend/dnssd.c	2016-06-15 14:45:45.794966648 +0200
ce62dc
@@ -1188,15 +1188,22 @@ query_callback(
ce62dc
   if (device->device_id)
ce62dc
     free(device->device_id);
ce62dc
 
ce62dc
+if (device_id[0])
ce62dc
+{
ce62dc
+  /* Mark this as the real device ID. */
ce62dc
+  ptr = device_id + strlen(device_id);
ce62dc
+  snprintf(ptr, sizeof(device_id) - (ptr - device_id), "FZY:0;");
ce62dc
+}
ce62dc
+
ce62dc
   if (!device_id[0] && strcmp(model, "Unknown"))
ce62dc
   {
ce62dc
     if (make_and_model[0])
ce62dc
-      snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;",
ce62dc
+      snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;FZY:1;",
ce62dc
 	       make_and_model, model);
ce62dc
     else if (!_cups_strncasecmp(model, "designjet ", 10))
ce62dc
-      snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s;", model + 10);
ce62dc
+      snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s;FZY:1;", model + 10);
ce62dc
     else if (!_cups_strncasecmp(model, "stylus ", 7))
ce62dc
-      snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s;", model + 7);
ce62dc
+      snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s;FZY:1;", model + 7);
ce62dc
     else if ((ptr = strchr(model, ' ')) != NULL)
ce62dc
     {
ce62dc
      /*
ce62dc
@@ -1206,7 +1213,7 @@ query_callback(
ce62dc
       memcpy(make_and_model, model, (size_t)(ptr - model));
ce62dc
       make_and_model[ptr - model] = '\0';
ce62dc
 
ce62dc
-      snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;",
ce62dc
+      snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;FZY:1;",
ce62dc
 	       make_and_model, ptr + 1);
ce62dc
     }
ce62dc
   }