diff options
author | "Nagaraj Yedathore - Sun Microsystems - Bangalore India" <Nagaraj.Yedathore@Sun.COM> | 2009-03-18 03:20:19 -0700 |
---|---|---|
committer | "Nagaraj Yedathore - Sun Microsystems - Bangalore India" <Nagaraj.Yedathore@Sun.COM> | 2009-03-18 03:20:19 -0700 |
commit | b657fff74acfeed123d06540dcbf2ebf0f4ebee9 (patch) | |
tree | 68ad694fd7c1ffbf32bdcef976957f2d7da437fa /usr/src/lib/print | |
parent | 67d84f12da62c35ad7e3c3472527a5722af25661 (diff) | |
download | illumos-gate-b657fff74acfeed123d06540dcbf2ebf0f4ebee9.tar.gz |
6799485 lpr -t does not tell the data from stdin is troff to printers after 127127-11
Diffstat (limited to 'usr/src/lib/print')
-rw-r--r-- | usr/src/lib/print/libpapi-lpd/common/lpd-job.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/lib/print/libpapi-lpd/common/lpd-job.c b/usr/src/lib/print/libpapi-lpd/common/lpd-job.c index dd1a0fb24c..728b7abb48 100644 --- a/usr/src/lib/print/libpapi-lpd/common/lpd-job.c +++ b/usr/src/lib/print/libpapi-lpd/common/lpd-job.c @@ -282,6 +282,17 @@ lpd_add_rfc1179_attributes(service_t *svc, papi_attribute_t **attributes, "rfc-1179-font-s", s); } + /* + * The document format needs to be added, but the control line + * should be added when the filenames are figured out. + */ + s = NULL; + papiAttributeListGetString(attributes, NULL, "document-format", &s); + if (s != NULL) { + papiAttributeListAddString(used, PAPI_ATTR_EXCL, + "document-format", s); + } + return (status); } |