Bug 8658 - remote printing does not work on some machines.
remote printing does not work on some machines.
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: lpr (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2000-01-20 13:31:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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 @@
 			 }
                         else
     		         {
-			  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).

Doug
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.

Doug

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