Bug 17750

Summary: Incompatibility between enscript-1.6.1-9 and lpr-0.50-4
Product: [Retired] Red Hat Linux Reporter: marques <marques>
Component: enscriptAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: marques
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-09 16:47:27 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:
Attachments:
Description Flags
This is the modified version of enscript's main.c using the optional -m argument none

Description marques@cs.cornell.edu 2000-09-20 17:52:17 UTC
There is an incompatibility between the packages enscript-1.6.1-9 and 
lpr-0.50-4 that ship with RedHat 6.2 regarding enscript's "-m" (send status
by mail) option.

This version of lpr expects its "-m" option to take an argument (the
address to mail the status report to). It does not work with an
argument-less "-m", unlike other lpr's (e.g. the Solaris lpr), that assume
mail should be sent to the user submitting the job.

Enscript expects lpr to accept an argument-less "-m", so if the enscript
user specifies that option, enscript just appends "-m" to the print
spooler's options.  This causes lpr to return an error: "lpr: missing
argument for 'm'".

I am not certain what the proper fix should be: should the enscript
interface be kept the same, allowing only the argument-less version (and
sending lpr the username of the person running the program); should
enscript users be forced to specify the recipient, keeping the interface
consistent with lpr; or should the argument be optional, 
sending to the person specified or the username if the argument was left
blank.  

In any case, it is a very easy fix involving only 5 lines of code.  (I will
send you my version, if you are interested.  It uses an optional argument.)

Hope this was descriptive enough.

Dan

Comment 1 marques@cs.cornell.edu 2000-09-20 17:55:24 UTC
Created attachment 3480 [details]
This is the modified version of enscript's main.c using the optional -m argument

Comment 2 Crutcher Dunnavant 2001-06-26 05:05:24 UTC
ok