diff options
author | jacobs <none@none> | 2008-06-06 17:25:53 -0700 |
---|---|---|
committer | jacobs <none@none> | 2008-06-06 17:25:53 -0700 |
commit | 36615d24946b849e48cedbbafa9adfb4a02b590c (patch) | |
tree | 29c151cfa7f79e50891cb8b14ad08c90a6be09a4 /usr/src/lib/print/libpapi-dynamic/common/nss.c | |
parent | 25cfde9ce623f31c57891c6d61fc4d43a7f5d7de (diff) | |
download | illumos-gate-36615d24946b849e48cedbbafa9adfb4a02b590c.tar.gz |
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
Diffstat (limited to 'usr/src/lib/print/libpapi-dynamic/common/nss.c')
-rw-r--r-- | usr/src/lib/print/libpapi-dynamic/common/nss.c | 11 |
1 files changed, 8 insertions, 3 deletions
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; |