[PATCH] cupsys: options parsing and job-sheet attribute to cups-lpd

David Decotigny david.decotigny at poly.in2p3.fr
Wed Nov 10 07:39:42 PST 2004


Hi,

Michael Sweet wrote:
> Probably the best thing to do is test with the current release of
> CUPS (1.1.22) and not a two-year-old version (1.1.17).  If the
> problem persists, report it using the form at:

You're right: this works fine with cups 1.1.22.

But I was not totally satisfied. There was no way to tell cups-lpd: 
"hey, just print the default banners as they are set up in the CUPS server".

So attached is a patch against 1.1.22 that makes this possible: you just 
launch cups-lpd in inetd with the argument "-o job-sheets=DEFAULT" 
instead of "-o job-sheets=banner_head,banner_tail". Without any 
argument, cups-lpd does not print any banner page except if the lpr 
client explicitely asks to print them (as before).

Again and again: forget my previous patch (see 1st message of the 
thread) regarding options.c: this was a buggy patch for a non-buggy 
source ! Shame on me.

-- 
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: 3367 bytes
Desc: not available
URL: <https://lists.cups.org/pipermail/cups/attachments/20041110/6f8c385f/attachment.bin>


More information about the cups mailing list