src/solaris/classes/sun/print/UnixPrintServiceLookup.java
Print this page
*** 193,203 ****
refreshServices();
}
if (printServices == null) {
return new PrintService[0];
} else {
! return (PrintService[])printServices.clone();
}
}
// refreshes "printServices"
--- 193,203 ----
refreshServices();
}
if (printServices == null) {
return new PrintService[0];
} else {
! return printServices.clone();
}
}
// refreshes "printServices"
*** 395,406 ****
/* To avoid execing a unix command see if the client is asking
* for the default printer by name, since we already have that
* initialised.
*/
! PrinterName defName =
! (PrinterName)defService.getAttribute(PrinterName.class);
if (defName != null && name.equals(defName)) {
if (matchesAttributes(defService, serviceSet)) {
services = new PrintService[1];
services[0] = defService;
--- 395,405 ----
/* To avoid execing a unix command see if the client is asking
* for the default printer by name, since we already have that
* initialised.
*/
! PrinterName defName = defService.getAttribute(PrinterName.class);
if (defName != null && name.equals(defName)) {
if (matchesAttributes(defService, serviceSet)) {
services = new PrintService[1];
services[0] = defService;