Bug 59433

Summary: lpr -# (2 or more) gives "Fatal error - Maximum of 1 copies allowed"
Product: [Retired] Red Hat Linux Reporter: Need Real Name <dgmcbride>
Component: LPRngAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-13 22:56:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-02-07 20:38:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221

Description of problem:
Using the copy feature of xsane, I discovered that calls using <lpr -#> fail.
Xsane 0.82 crashed completely when set to >1 copy. I upgraded to 0.84 -- it
still returns "Fatal error..." but handles it better--no crash, just dialog box.
Invoking lpr from command line returns the same message. This does not result in
any nasty residual system behavior as far as I can tell (hung processes,
instability, crashed lpd, etc.).

Version-Release number of selected component (if applicable):
LPRng-3.7.4-28

How reproducible:
Always

Steps to Reproduce:
1. do something that invokes <lpr -# or -K> where #/K > 1
2.
3.
	

Actual Results:  returns "Fatal error - Maximum of 1 copies allowed"

Expected Results:  I should have got 2 or more copies printed.

Additional info:

Comment 1 Tim Waugh 2002-02-08 11:07:56 UTC
Yep.  I'd like to see if I can find what's causing this and fix it for the next
release.

Comment 2 Tim Waugh 2002-02-13 14:28:19 UTC
This is caused by LPRng's default for 'mc', which can be adjusted in
/etc/lpd.conf.  Put 'mc#128' in there, for example.  I'll adjust this default
for the next LPRng build.

Comment 3 Need Real Name 2002-02-13 22:56:44 UTC
Yes, thanks!  I'm embarrassed that I overlooked it in man, but I was fixated on
-# and -K. Maybe it should have, but checking for printcap options never
occurred to me. I wonder, since changing mc# is so easy, perhaps simply changing
the diemsg to point the user to lpd.conf or printcap.local would be easier than
trying to pick a default that pleases everyone, and could save users from
scouring man pages for the right reference?  For example: "Maximum <n> copies
allowed, set default in lpd.conf"

Comment 4 Tim Waugh 2002-02-15 08:49:26 UTC
I'll mention it to the maintainer.  For now I've just set the default to
something sane.

3.8.5-3.

Comment 5 Tim Waugh 2002-04-10 10:40:32 UTC
*** Bug 63124 has been marked as a duplicate of this bug. ***

Comment 6 Tim Waugh 2002-04-17 06:33:01 UTC
*** Bug 63649 has been marked as a duplicate of this bug. ***