summaryrefslogtreecommitdiff
path: root/source/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-01-22 09:25:05 +0000
committerJeremy Allison <jra@samba.org>1998-01-22 09:25:05 +0000
commit4cae830ab3a942b2f2868173a492d02f6332651d (patch)
tree51913cd9bbe26958fb5e3b28db8fe8226b6d672f /source/printing
parent722dc838c754e9367cca5a3bd78bbb5d5871936a (diff)
downloadsamba-4cae830ab3a942b2f2868173a492d02f6332651d.tar.gz
printing.c: Bug fix for lpng reporting.
server.c: Large fix for oplock deadlock bug. util.c: Fix for oplock deadlock bug. Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/printing.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c
index 76b962606b7..629b3ad4960 100644
--- a/source/printing/printing.c
+++ b/source/printing/printing.c
@@ -436,7 +436,12 @@ A long spool-path will just waste significant chars of the file name.
buf->job = atoi(tok[LPRNG_JOBTOK]);
buf->size = atoi(tok[LPRNG_TOTALTOK]);
- buf->status = strequal(tok[LPRNG_RANKTOK],"active")?LPQ_PRINTING:LPQ_QUEUED;
+ if (strequal(tok[LPRNG_RANKTOK],"active"))
+ buf->status = LPQ_PRINTING;
+ else if (strequal(tok[LPRNG_RANKTOK],"hold"))
+ buf->status = LPQ_PAUSED;
+ else
+ buf->status = LPQ_QUEUED;
/* buf->time = time(NULL); */
buf->time = LPRng_time(tok,LPRNG_TIMETOK);
DEBUG(3,("Time reported for job %d is %s", buf->job, ctime(&buf->time)));