Red Hat Bugzilla – Bug 38850
lpd does not recognize port option as documented
Last modified: 2007-04-18 12:32:59 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
I'll attach a patch against lpr 0.50 which fixes this problem
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.
Created attachment 17126 [details]
Fix for port# problem in lpr/lpd
This patch adds the bonus functionality of a specified port of 0 will stop lpd
from listening on a TCP socket at all.
We use LPRng in the current release. (But thanks for the patch.)