[PATCH] cupsys: options parsing and job-sheet attribute to cups-lpd
David Decotigny
david.decotigny at poly.in2p3.fr
Tue Nov 9 07:14:03 PST 2004
Hi,
It semms that the "job-sheets" argument that can be passed to cups-lpd
by inetd is not correctly supported. Actually, I think there is both 1/
a (critical IMHO) problem with cupsAddOption() which does not realloc
correctly the "options" array (it realloc'ed one of the items in the
array...), and 2/ a problem with a cups-lpd function which messed up
with 2 options array.
Attached is the patch against current cupsys of debian/testing. Now,
when I pass -o job-sheets=titi,toto to cups-lpd in inetd, the banners
are printed correctly.
BTW: it seems that job-sheets-default is not available to the
cups-lpd... is it because the IPP server it interacts with is cups
version 1.1.17 (redhat 9) ? Or is it because this attribute has to be
defined in a place deifferent than /etc/cups/printers.conf (variable
JobSheets) ? Where ?
Thanks.
--
David Decotigny -- LLR -- http://polywww.in2p3.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-cups-lpd.diff
Type: text/x-patch
Size: 2763 bytes
Desc: not available
URL: <https://lists.cups.org/pipermail/cups/attachments/20041109/8f8123ff/attachment.bin>
More information about the cups
mailing list