This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 8658 - remote printing does not work on some machines.
remote printing does not work on some machines.
Product: Red Hat Linux
Classification: Retired
Component: lpr (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 2000-01-20 12:27 EST by gilmore
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-01-20 13:31:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description gilmore 2000-01-20 12:27:03 EST
I have not investigated the problem yet on why remote
printing works from some machines but not others,
but it is clear looking at the code sendit() in lpd
may strip out ot "f" command line from the command
file before transmitting the command file to the
remote machine.

The following will hack seems to work around this
particular problem.

--- printjob.c.1	Fri Sep 10 14:35:32 1999
+++ printjob.c	Thu Jan 20 08:32:39 2000
@@ -917,8 +917,10 @@
-			  if (dup_cfp)
-			    fprintf(dup_cfp, "%s\n", line);
+                            if (dup_cfp) {
+			       fprintf(dup_cfp, "%s\n", last);
+			       fprintf(dup_cfp, "%s\n", line);
+                            }

                         sendresult = sendfile('\3', last+1);

Is there a better fix for this bug?

Also I'll try to get information on why it works on some
machines (using the same remote printcap file).

Comment 1 gilmore 2000-01-20 13:31:59 EST
I did not see the update rpm verion 48-1
for lpr, installing that works.

Sorry about that.


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