Under LPRng 3.6.1, sending a short status request (REQ_SHORT in
lpd's terms) would return both the spooling and printing status of the
queue as well as the message set for that queue. At some point, that
behavior was broken such that only LONG and VERBOSE requests would
return this information; a SHORT request will return the message set for
a given queue and not its printing/spooling state.
This seems broken, and here's a patch against LPRng 3.7.4 that
reverts to the previous behavior.
Garry
--- lpd_status.c.1 Fri Jan 5 10:51:09 2001
+++ lpd_status.c Fri Jan 5 10:51:42 2001
@@ -8,7 +8,7 @@
***************************************************************************/
static char *const _id =
-"$Id: lpd_status.c,v 1.1 2001/01/05 15:49:31 zacheiss Exp $";
+"$Id: lpd_status.c,v 1.2 2001/01/05 15:51:41 zacheiss Exp $";
#include "lp.h"
@@ -777,7 +777,7 @@
Pr_disabled(&Spool_control)?"yes":"no",
Pr_aborted(&Spool_control)?"yes":"no",
Sp_disabled(&Spool_control)?"yes":"no");
- } else if( displayformat == REQ_DLONG ){
+ } else if( displayformat == REQ_DLONG || displayformat == REQ_DSHORT){
flag = 0;
if( Pr_disabled(&Spool_control) || Sp_disabled(&Spool_control) ||
Pr_aborted(&Spool_control) ){
SNPRINTF( header+len, sizeof(header)-len) " (" );
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------