From 36615d24946b849e48cedbbafa9adfb4a02b590c Mon Sep 17 00:00:00 2001 From: jacobs Date: Fri, 6 Jun 2008 17:25:53 -0700 Subject: 6699255 127127/127128-11 break lp operation if the prinit server and client have different kernel version 6707436 print-service should save/restore /etc/printers.conf configuration 6707986 lpset/ldap/printer-uri/libpapi incompatibilities cause printing problems --- usr/src/lib/print/libpapi-dynamic/common/nss.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr/src/lib') diff --git a/usr/src/lib/print/libpapi-dynamic/common/nss.c b/usr/src/lib/print/libpapi-dynamic/common/nss.c index fa1305c377..22cb2992d5 100644 --- a/usr/src/lib/print/libpapi-dynamic/common/nss.c +++ b/usr/src/lib/print/libpapi-dynamic/common/nss.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * */ @@ -268,9 +268,14 @@ fill_printer_uri_supported(papi_attribute_t ***list) if (attribute != NULL) /* we have what we need, return */ return; - /* do we have a printer-uri to rename */ + /* do we have a printer-uri (in URI form) to rename */ attribute = papiAttributeListFind(*list, "printer-uri"); - if (attribute != NULL) { /* rename it in place and return */ + if ((attribute != NULL) && + (attribute->type == PAPI_STRING) && + (attribute->values != NULL) && + (attribute->values[0]->string != NULL) && + (strstr(attribute->values[0]->string, "://") != NULL)) { + /* rename it in place and return */ free(attribute->name); attribute->name = strdup("printer-uri-supported"); return; -- cgit v1.2.3