Bug 1811735 - lpr to non-existent printer reports "lpr: No such file or directory" instead of "lpr: The printer or class does not exist."
Summary: lpr to non-existent printer reports "lpr: No such file or directory" instead ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-09 16:19 UTC by Zdenek Dohnal
Modified: 2021-11-03 05:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of: 1811716
Environment:
Last Closed: 2020-07-21 10:52:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Zdenek Dohnal 2020-03-09 16:19:34 UTC
+++ This bug was initially created as a clone of Bug #1811716 +++

Description of problem:
When using lpr (or lp) to print via CUPS from the command line, specifying a nonexistent printer name results in a delay of 1 to 2 seconds, followed by the message "lpr: No such file or directory".

Version-Release number of selected component (if applicable):
cups-2.2.6-28.el8.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Run:
  lpr -Pfake /etc/resolv.conf
(where "fake" is not the name of a configured printer).

Actual results:
The message "lpr: No such file or directory" is produced after a short delay.

Expected results:
The message "lpr: The printer or class does not exist." should be produced immediately.

Additional info:
"lp -dfake /etc/resolv.conf" produces the same result.

--- Additional comment from Zdenek Dohnal on 2020-03-09 16:18:41 UTC ---

Hi,

Thank you for taking the time to report this issue to us. We appreciate the feedback and use reports such as this one to guide our efforts at improving our products. That being said, this bug tracking system is not a mechanism for requesting support, and we are not able to guarantee the timeliness or suitability of a resolution.

If this issue is critical or in any way time sensitive, please raise a ticket through the regular Red Hat support channels to ensure it receives the proper attention and prioritization to assure a timely resolution. 

For information on how to contact the Red Hat production support team, please visit:
    https://www.redhat.com/support/process/production/#howto

I'll clone the bugzilla to Fedora.

Comment 1 Zdenek Dohnal 2020-07-21 10:52:02 UTC
Since the issue is only about the correcting the error message, I'm closing it as UPSTREAM.

Reported here https://github.com/apple/cups/issues/5808 .


Note You need to log in before you can comment on or make changes to this bug.