Bug 8658 - remote printing does not work on some machines.
Summary: remote printing does not work on some machines.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-20 17:27 UTC by gilmore
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-01-20 18:31:46 UTC
Embargoed:


Attachments (Terms of Use)

Description gilmore 2000-01-20 17:27:03 UTC
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 18:31:59 UTC
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.