]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't add CUPS_PRINTER_REMOTE to p->type, as then the printer will get
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 17 May 2007 13:25:17 +0000 (13:25 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 17 May 2007 13:25:17 +0000 (13:25 +0000)
timed out.  Just add it the printer-type attribute that gets reported
to clients (more for STR #2384)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6537 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/printers.c

index 2ce449f6c1f2fcfae1002b868dea39004dd35a8d..685ee75508b95d7fd72fa2e75454e69d5282643b 100644 (file)
@@ -2180,23 +2180,24 @@ cupsdSetPrinterAttrs(cupsd_printer_t *p)/* I - Printer to setup */
        cupsdSetString(&p->product, ppd->product);
 #endif /* HAVE_DNSSD */
 
-        if (ppdFindAttr(ppd, "APRemoteQueueID", NULL))
-       {
-        /*
-         * This is a shared Bonjour printer...
-         */
-
-         p->type |= CUPS_PRINTER_REMOTE;
-       }
+        ppdattr = ppdFindAttr(ppd, "APRemoteQueueID", NULL);
 
        /*
         * Close the PPD and set the type...
        */
 
-
        ppdClose(ppd);
 
         printer_type = p->type;
+
+        if (ppdattr)
+       {
+        /*
+         * This is a shared Bonjour printer...
+         */
+
+         printer_type |= CUPS_PRINTER_REMOTE;
+       }
       }
       else if (!access(filename, 0))
       {