changeset 4043:22ad6c567fec

6533900 lpstat should tell the same lies as it always has
author wendyp
date Mon, 16 Apr 2007 14:11:05 -0700
parents ed569729e015
children da968d040d72
files usr/src/lib/print/libpapi-lpd/common/printer.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/print/libpapi-lpd/common/printer.c	Mon Apr 16 13:05:41 2007 -0700
+++ b/usr/src/lib/print/libpapi-lpd/common/printer.c	Mon Apr 16 14:11:05 2007 -0700
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  *
  */
@@ -83,6 +83,12 @@
 					PAPI_ATTR_APPEND,
 					"printer-uri-supported", buf);
 		}
+		/* Set printer accepting: mimic prepapi behavior */
+		if ((p = *printer) != NULL)
+			papiAttributeListAddBoolean(&(p->attributes),
+				PAPI_ATTR_REPLACE,
+				"printer-is-accepting-jobs", PAPI_TRUE);
+
 	}
 
 	return (status);