I am experimenting with LPRng release 3.6.26 under Solaris 2.6. I found a
bug that prevents using a program in place of an actual device, that is,
if the printcap has
:lp=|-$/opt/usl/bin/bppcat /dev/bpp0
then Printer_open() will always think the open has failed. This is because
the variable device_fd wasn't set in the '|' case. Here's a context diff
of a patch:
--- src/common/lpd_jobs.c Thu Oct 19 16:15:06 2000
***************
*** 2248,2253 ****
--- 2248,2254 ----
if( (close( in[0] ) == -1 ) ){
LOGERR_DIE(LOG_INFO)"Printer_open: close(%d) fai
led", in[0]);
}
+ device_fd = in[1];
break;
case '/':
Regards,
-- James Dugal, N5KNX Internet: [EMAIL PROTECTED]
Director Ham packet: n5knx@k5arh.#lft.la.usa.noam
Computing Support Services US Mail: PO Box 42770 Lafayette, LA 70504
U of Louisiana at Lafayette Tel. 337-482-6417 U.S.A.
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------