> From [EMAIL PROTECTED] Thu May  2 07:08:20 2002
> Date: Thu, 2 May 2002 14:05:28 +0100 (BST)
> From: Graeme Wood <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: LPRng: LPRng-3.8.10 lpr lpd.conf option
>
> Hi folks,
>
> The option in lpd.conf to pass additional flags to lpr specified with
> lpr=<string> doesn't work correctly. This sets a flag called Lpr_opts_DYN.
> If this is set then the arguments to lpr get processed twice which results
> in two copies of each file being printed.
>
> I am not sure how to fix this but the additional call to Get_parms with
> all the new flags *and* the flags already processed looks incorrect.
>
> =============================================================================
> Graeme Wood                                 Email: [EMAIL PROTECTED]
> Unix Systems Support                        Phone: +44 131 650 5003
> The University of Edinburgh                 Fax:   +44 131 650 6552
> =============================================================================

Apply the following patch.
Ummm... tell me if it works, of course...

*** common/lpr.c        2002/05/05 20:06:40     1.29
--- common/lpr.c        2002/05/05 21:39:43
***************
*** 133,138 ****
--- 133,139 ----
                newargs.list[newargs.count] = 0;
                if(DEBUGL1)Dump_line_list("lpr - new options",&newargs );
                Optind = 0;
+               Files.count = 0;
                Getopt(0,0,0);
                Get_parms(newargs.count, newargs.list);      /* scan input args */
                newargs.count = 0;


-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to