printer status problem

Jim Vopni jimv at metrics.com
Tue Dec 12 21:00:40 GMT 2000


Somewhere along the line the following check was added to printing.c in the
SAMBA_2_2 tree

int print_queue_status(int snum,
                       print_queue_struct **queue,
                       print_status_struct *status)
{
.

        if (tsc.count == 0)
                return 0;
.

This causes the function to exit without filling in the "status" struct.
A printer which is paused with no jobs is displayed as "ready" instead of
"paused"
or whatever value happens to have been on the stack of the calling routine.

...Jim
----------------
Jim Vopni		Software Metrics
jimv at metrics.com	450 Philips St
(519) 885-2458 x222	Waterloo Ont. N2L 5J2





More information about the samba-technical mailing list