f0558cd
diff -up cups-1.4.3/backend/dnssd.c.dnssd-deviceid.patch cups-1.4.3/backend/dnssd.c
f0558cd
--- cups-1.4.3/backend/dnssd.c.dnssd-deviceid.patch	2010-04-16 19:36:12.226148774 +0100
f0558cd
+++ cups-1.4.3/backend/dnssd.c	2010-04-16 19:39:53.314148240 +0100
f0558cd
@@ -1192,15 +1192,22 @@ find_device (cups_array_t *devices,
f0558cd
       if (device->device_id)
f0558cd
         free(device->device_id);
f0558cd
 
f0558cd
+      if (device_id[0])
f0558cd
+      {
f0558cd
+	  /* Mark this as the real device ID. */
f0558cd
+	  ptr = device_id + strlen(device_id);
f0558cd
+	  snprintf(ptr, sizeof(device_id) - (ptr - device_id), "FZY:0;");
f0558cd
+      }
f0558cd
+
f0558cd
       if (!device_id[0] && strcmp(model, "Unknown"))
f0558cd
       {
f0558cd
         if (make_and_model[0])
f0558cd
-	  snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;",
f0558cd
+	  snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;FZY:1;",
f0558cd
 	           make_and_model, model);
f0558cd
         else if (!strncasecmp(model, "designjet ", 10))
f0558cd
-	  snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s", model + 10);
f0558cd
+	  snprintf(device_id, sizeof(device_id), "MFG:HP;MDL:%s;FZY:1;", model + 10);
f0558cd
         else if (!strncasecmp(model, "stylus ", 7))
f0558cd
-	  snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s", model + 7);
f0558cd
+	  snprintf(device_id, sizeof(device_id), "MFG:EPSON;MDL:%s;FZY:1;", model + 7);
f0558cd
         else if ((ptr = strchr(model, ' ')) != NULL)
f0558cd
 	{
f0558cd
 	 /*
f0558cd
@@ -1210,7 +1217,7 @@ find_device (cups_array_t *devices,
f0558cd
           memcpy(make_and_model, model, ptr - model);
f0558cd
 	  make_and_model[ptr - model] = '\0';
f0558cd
 
f0558cd
-	  snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s",
f0558cd
+	  snprintf(device_id, sizeof(device_id), "MFG:%s;MDL:%s;FZY:1;",
f0558cd
 		   make_and_model, ptr + 1);
f0558cd
         }
f0558cd
       }