[10903] in Athena Bugs
7.6 lpq -l is broken in displaying
daemon@ATHENA.MIT.EDU (epeisach@Athena.MIT.EDU)
Mon Sep 6 20:33:45 1993
From: epeisach@Athena.MIT.EDU
Date: Mon, 6 Sep 93 20:33:31 -0400
To: bugs@Athena.MIT.EDU
Cc: basch@Athena.MIT.EDU
lpq -l is supposed to give you info as to how the remote print server is
configured... Right now, lpq -l gives the remote server info and then
the info in the local printcap... I think this has been casued by
Richards merger of the s_lpq and lpq sources....
The problem is shown as follows.... (lpq on paris is still the last
release version):
Script started on Mon Sep 6 20:12:11 1993
csh> lpq -Pbias -l
PAPER-PUSHER.MIT.EDU...
Kerberos authenticated
Quota server: prlogger.mit.edu
Page cost: 10 cents
no entries in bias
csh> /afs/athena/system/pmax*/srvd.76/usr/ucb/lpq -Pbias -l
PAPER-PUSHER.MIT.EDU...
Kerberos authenticated
Quota server: prlogger.mit.edu
Page cost: 10 cents
no entries in bias
Kerberos authenticated
Quota server: HECTOR.MIT.EDU
Page cost: 10 cents
csh>
script done on Mon Sep 6 20:12:35 1993
I think the correct fix, but has to be tested on the printserver as well
(and a print server with a new lpd with this change is:
*** displayq.c Mon May 10 13:37:06 1993
--- /tmp/displayq.c Mon Sep 6 20:29:16 1993
***************
*** 137,144 ****
RM);
}
/* if printer is not on local machine, ignore LP */
! else if (strcasecmp (name, hp->h_name) != 0)
LP = "";
}
}
--- 137,146 ----
RM);
}
/* if printer is not on local machine, ignore LP */
! else if (strcasecmp (name, hp->h_name) != 0) {
LP = "";
+ lflag = 0;
+ }
}
}