> From [EMAIL PROTECTED] Fri Jan 5 09:19:51 2001
> To: [EMAIL PROTECTED]
> Subject: LPRng: Another behavior change - thppbbt.
> Date: Fri, 05 Jan 2001 10:55:57 -0500
> From: Garry Zacheiss <[EMAIL PROTECTED]>
>
> 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) " (" );
Release LPRng 3.7.5 Sun Jan 7 09:01:33 PST 2001
...
The lpc -s status only reported number of jobs. Now it also reports
queue status, as it used to, and should have.
(Patch by: Garry Zacheiss <[EMAIL PROTECTED]>)
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.lprng.com)
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------