Bug 38850 - lpd does not recognize port option as documented
lpd does not recognize port option as documented
Product: Red Hat Linux
Classification: Retired
Component: lpr (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-05-02 17:35 EDT by Scott Gifford
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-18 17:43:11 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix for port# problem in lpr/lpd (2.25 KB, patch)
2001-05-02 17:39 EDT, Scott Gifford
no flags Details | Diff

  None (edit)
Description Scott Gifford 2001-05-02 17:35:57 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14-5.0 i686; en-US; 0.8.1)

According to the lpd manpage, lpd accepts an optional 'port' parameter,
which tells it to listen for TCP connections on a port other than the one
specified in /etc/services.  This option does not work, and there is no
code in lpd.c to handle this case.

Bug 10133 is this same bug for RedHat 6.1, and it was closed with the
comment "Fixed in lpr-ng".  Well, I just installed RedHat 6.2, which still
ships with standard lpd, and installs it by default.  Please don't close
this out because it's fixed in lpr-ng until you RedHat has stopped shipping
standard lpr with any version of RedHat Linux; otherwise it's just a
cop-out.  :-)

I'll attach a patch against lpr 0.50 which fixes this problem

Reproducible: Always
Steps to Reproduce:
1.Run /usr/sbin/lpd 10515
2.Telnet to port 10515 to see your lpd listening


Actual Results:  It's not there!

Expected Results:  A connection to lpd.
Comment 1 Scott Gifford 2001-05-02 17:39:12 EDT
Created attachment 17126 [details]
Fix for port# problem in lpr/lpd
Comment 2 Scott Gifford 2001-05-02 17:40:17 EDT
This patch adds the bonus functionality of a specified port of 0 will stop lpd
from listening on a TCP socket at all.
Comment 3 Tim Waugh 2002-01-10 06:25:58 EST
We use LPRng in the current release. (But thanks for the patch.)

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